Package eu.webtoolkit.jwt
Class WLineF
java.lang.Object
eu.webtoolkit.jwt.WLineF
Utility class that defines a single line.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetP1()Returns the first point.getP2()Returns the second point.doublegetX1()Returns the X coordinate of the first point.doublegetX2()Returns the X coordinate of the second point.doublegetY1()Returns the Y coordinate of the first point.doublegetY2()Returns the Y coordinate of the second point.
-
Constructor Details
-
WLineF
public WLineF()Default constructor.Constructs a line from (x1=0,y1=0) to (x2=0,
y2=0). -
WLineF
Construct a line connecting two points.Constructs a line from p1 to
p2. -
WLineF
public WLineF(double x1, double y1, double x2, double y2) Construct a line connecting two points.Constructs a line from (x1,y1) to (x2,
y2).
-
-
Method Details
-
getX1
public double getX1()Returns the X coordinate of the first point.- See Also:
-
getY1
public double getY1()Returns the Y coordinate of the first point.- See Also:
-
getX2
public double getX2()Returns the X coordinate of the second point.- See Also:
-
getY2
public double getY2()Returns the Y coordinate of the second point.- See Also:
-
getP1
Returns the first point.- See Also:
-
getP2
Returns the second point.- See Also:
-
equals
-