Class Vector2fPath

java.lang.Object
ai.path.vector2f.Vector2fPath
All Implemented Interfaces:
Path<org.joml.Vector2f>

public class Vector2fPath extends Object implements Path<org.joml.Vector2f>
Since:
08.07.2021
Author:
Juyas
  • Constructor Details

    • Vector2fPath

      public Vector2fPath(Node<org.joml.Vector2f> start, Node<org.joml.Vector2f> end, float cost)
  • Method Details

    • start

      public Node<org.joml.Vector2f> start()
      Description copied from interface: Path
      The node where the path starts.
      Specified by:
      start in interface Path<org.joml.Vector2f>
      Returns:
      the starting node
    • end

      public Node<org.joml.Vector2f> end()
      Description copied from interface: Path
      The node where the path ends.
      Specified by:
      end in interface Path<org.joml.Vector2f>
      Returns:
      the ending node
    • cost

      public float cost()
      Description copied from interface: Path
      The costs to take this path. An artificial value to order multiple paths by costs and to find a the path with the lowest cost which is considered the shortest.
      Specified by:
      cost in interface Path<org.joml.Vector2f>
      Returns:
      the cost to take this path