Limited Continuos2D
This class represents a 2D continuous environment with spatial limitations. Those limitations will prevent nodes to move in positions which are not allowed.
Parameters
<T>
concentration type
Constructors
Link copied to clipboard
open fun LimitedContinuos2D(incarnation: Incarnation<T, Euclidean2DPosition>)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open fun farthestPositionReachable(node: NodeWithShape<T, out Any, out Any>, desiredPosition: Euclidean2DPosition, hitboxRadius: Double): Euclidean2DPosition
Content copied to clipboard
node.
abstract fun farthestPositionReachable(node: NodeWithShape<T, out Any, out Any>, desiredPosition: P, hitboxRadius: Double): P
Content copied to clipboard
Computes the farthest position reachable by a node towards a desiredPosition, avoiding node overlapping.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the heading of a node as a direction vector.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getNodesWithin(shape: GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>): List<Node<T>>
Content copied to clipboard
Gets all nodes whose shape.intersect is true for the given shape.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getShape(node: Node<T>): GeometricShape<Euclidean2DPosition, Euclidean2DTransformation>
Content copied to clipboard
Gets the shape of a node relatively to its position and heading in the environment.
Link copied to clipboard
A factory of shapes compatible with this environment.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates an euclidean position from the given coordinates.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the heading of a node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard