Uses of Class
common.Point

  • Uses of Point in common

    Methods in common that return Point
    Modifier and Type
    Method
    Description
    Line.getP1()
    Getter for the P1
    Line.getP2()
    Getter for the P2
    Methods in common that return types with arguments of type Point
    Modifier and Type
    Method
    Description
    Point.slopeOrder()
    Compares two points by the slope they make with this point.
    Methods in common with parameters of type Point
    Modifier and Type
    Method
    Description
    int
    Point.compareTo(Point that)
    Compares two points by y-coordinate, breaking ties by x-coordinate.
    float
    Point.distance(Point that)
    Returns the Euclidean distance from this point to that point.
    double
    Point.slopeTo(Point that)
    Returns the slope between this point and the specified point.
    Constructors in common with parameters of type Point
    Modifier
    Constructor
    Description
     
    Line(Point p1, Point p2)
    Constructs and initializes a line with the specified end locations P1, and P2, in the coordinate space.
     
    Point(Point that)
    Initializes a new point as copy of the argument.