Class Vector2fNode

java.lang.Object
ai.path.Node<org.joml.Vector2f>
ai.path.vector2f.Vector2fNode

public class Vector2fNode extends Node<org.joml.Vector2f>
Since:
08.07.2021
Author:
Juyas
  • Constructor Details

    • Vector2fNode

      public Vector2fNode(org.joml.Vector2f position)
  • Method Details

    • addPathTo

      public void addPathTo(Vector2fNode node, float cost, boolean bidirectional)
    • position

      public org.joml.Vector2f position()
      Description copied from class: Node
      The external position data contained in this node. The exact value of this method is ignored by the pathfinding algorithms, but may be used to calculate relationship data between nodes using an external algorithm.
      Specified by:
      position in class Node<org.joml.Vector2f>
      Returns:
      the position data chosen for this node
    • paths

      public List<Path<org.joml.Vector2f>> paths()
      Description copied from class: Node
      All paths starting at this node.
      Specified by:
      paths in class Node<org.joml.Vector2f>
      Returns:
      all paths starting at this node