Interface Position2D

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Position , java.io.Serializable

    
    public interface Position2D<P extends Position2D<P>>
     implements Position<P>
                        

    A bidimensional position.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Double getCoordinate(Integer dimension) Allows to access the value of a coordinate.
      abstract Double getX()
      abstract Double getY()
      • Methods inherited from class it.unibo.alchemist.model.Position

        boundingBox, distanceTo, getCoordinates, getDimensions, minus, plus
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getCoordinate

        @Deprecated(message = "Access to coordinates in a 2D manifold should be performed using getX / getY") abstract Double getCoordinate(Integer dimension)

        Allows to access the value of a coordinate.

        Parameters:
        dimension -
        the dimension. E.g., in a 2-dimensional implementation, 0
        could be the X-axis and 1 the Y-axis
        Returns:

        the coordinate value

      • getX

         abstract Double getX()
        Returns:

        horizontal position

      • getY

         abstract Double getY()
        Returns:

        vertical position