Package eu.webtoolkit.jwt
Class WLineF
java.lang.Object
eu.webtoolkit.jwt.WLineF
Utility class that defines a single line.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getP1()
Returns the first point.getP2()
Returns the second point.double
getX1()
Returns the X coordinate of the first point.double
getX2()
Returns the X coordinate of the second point.double
getY1()
Returns the Y coordinate of the first point.double
getY2()
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. -
getY1
public double getY1()Returns the Y coordinate of the first point. -
getX2
public double getX2()Returns the X coordinate of the second point. -
getY2
public double getY2()Returns the Y coordinate of the second point. -
getP1
Returns the first point. -
getP2
Returns the second point. -
equals
-