Java java.awt.geom Line2D.Double fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom Line2D.Double fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom Line2D.Double.

The text is from its open source code.

Constructor

Line2D.Double
Double(double x1, double y1, double x2, double y2)
Constructs and initializes a Line2D from the specified coordinates.

Method

doublegetX1()
Returns the X coordinate of the start point in double precision.
doublegetX2()
Returns the X coordinate of the end point in double precision.
doublegetY1()
Returns the Y coordinate of the start point in double precision.
doublegetY2()
Returns the Y coordinate of the end point in double precision.
booleanintersects(Rectangle2D r)
doubleptSegDistSq(double px, double py)
Returns the square of the distance from a point to this line segment.
voidsetLine(double x1, double y1, double x2, double y2)
Sets the location of the end points of this Line2D to the specified double coordinates.