Class Point

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Joints.Joint

    public class Point
    extends java.lang.Object
    implements java.io.Serializable
    A point representing a location in (x,y) coordinate space, specified in double precision.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(double x, double y)
      Constructs and initializes a point at the specified (x,y) location in the coordinate space.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getX()
      Returns the X coordinate of this Point in double precision.
      double getY()
      Returns the Y coordinate of this Point in double precision.
      • Methods inherited from class java.lang.Object

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

      • Point

        public Point​(double x,
                     double y)
        Constructs and initializes a point at the specified (x,y) location in the coordinate space.
        Parameters:
        x - the X coordinate of the newly constructed Point
        y - the Y coordinate of the newly constructed Point
    • Method Detail

      • getX

        public double getX()
        Returns the X coordinate of this Point in double precision.
        Returns:
        the X coordinate of this Point
      • getY

        public double getY()
        Returns the Y coordinate of this Point in double precision.
        Returns:
        the Y coordinate of this Point