Example usage for Java java.awt.geom Line2D.Double fields, constructors, methods, implement or subclass
The text is from its open source code.
Line2D.Double | |
Double(double x1, double y1, double x2, double y2) Constructs and initializes a Line2D from the specified coordinates. |
double | getX1() Returns the X coordinate of the start point in double precision. |
double | getX2() Returns the X coordinate of the end point in double precision. |
double | getY1() Returns the Y coordinate of the start point in double precision. |
double | getY2() Returns the Y coordinate of the end point in double precision. |
boolean | intersects(Rectangle2D r) |
double | ptSegDistSq(double px, double py) Returns the square of the distance from a point to this line segment. |
void | setLine(double x1, double y1, double x2, double y2) Sets the location of the end points of this Line2D to the specified double coordinates. |