public class Line extends Object
Constructor and Description |
---|
Line()
Create a blank line.
|
Line(double x1,
double y1,
double x2,
double y2)
Create a line.
|
Modifier and Type | Method and Description |
---|---|
double |
getX1()
Get the x1 location.
|
double |
getX2()
Get the x2 location.
|
double |
getY1()
Get the y1 location.
|
double |
getY2()
Get the y2 location.
|
void |
set(double x1,
double y1,
double x2,
double y2)
Set the line coordinates.
|
public Line()
public Line(double x1, double y1, double x2, double y2)
x1
- The x coordinate of the start point.y1
- The y coordinate of the start point.x2
- The x coordinate of the end point.y2
- The y coordinate of the end point.public void set(double x1, double y1, double x2, double y2)
x1
- The x coordinate of the start pointy1
- The y coordinate of the start pointx2
- The x coordinate of the end pointy2
- The y coordinate of the end pointpublic double getX1()
public double getX2()
public double getY1()
public double getY2()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.