public final class RadLine extends Object
Modifier and Type | Field and Description |
---|---|
double |
x1
This field holds the X coordinate of the first point of the
RadLine instance. |
double |
x2
This field holds the X coordinate of the second point of the
RadLine instance. |
double |
y1
This field holds the Y coordinate of the first point of the
RadLine instance. |
double |
y2
This field holds the Y coordinate of the second point of the
RadLine instance. |
Constructor and Description |
---|
RadLine(float x1,
float x2,
float y1,
float y2)
Creates an instance of the
RadLine class with specified coordinates
for its building points. |
RadLine(RadPoint point1,
RadPoint point2)
Creates an instance of the
RadLine class with specified coordinates for its building points. |
Modifier and Type | Method and Description |
---|---|
static RadLine |
round(RadLine line)
Rounds the parameters of the specified
RadLine by adding 0.5 to the points
that build it. |
public double x1
RadLine
instance.public double x2
RadLine
instance.public double y1
RadLine
instance.public double y2
RadLine
instance.public RadLine(float x1, float x2, float y1, float y2)
RadLine
class with specified coordinates
for its building points.x1
- the value for the X coordinate of the first point.x2
- the value for the X coordinate of the second pointy1
- the value for the Y coordinate of the first point.y2
- the value for the Y coordinate of the second point.