-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Position,java.io.Serializable
public interface Position2D<P extends Position2D<P>> implements Position<P>
A bidimensional position.
-
-
Method Summary
Modifier and Type Method Description abstract DoublegetCoordinate(Integer dim)Allows to access the value of a coordinate. abstract DoublegetX()abstract DoublegetY()abstract DoubleArraygetCoordinates()Allows to get the position as a Number array. abstract IntegergetDimensions()-
-
Method Detail
-
getCoordinate
@Deprecated(message = "Access to coordinates in a 2D manifold should be performed using getX / getY") abstract Double getCoordinate(Integer dim)
Allows to access the value of a coordinate.
- Parameters:
dim-the dimension. E.g., in a 2-dimensional implementation, 0 could be the X-axis and 1 the Y-axis
-
getCoordinates
abstract DoubleArray getCoordinates()
Allows to get the position as a Number array.
-
getDimensions
abstract Integer getDimensions()
-
-
-
-