public class Segment
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
Vector3 |
a
the starting position
|
Vector3 |
b
the ending position
|
Constructor and Description |
---|
Segment(float aX,
float aY,
float aZ,
float bX,
float bY,
float bZ)
Constructs a new Segment from the two points given.
|
Segment(Vector3 a,
Vector3 b)
Constructs a new Segment from the two points given.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
float |
len() |
float |
len2() |
public final Vector3 a
public final Vector3 b
public Segment(Vector3 a, Vector3 b)
a
- the first pointb
- the second pointpublic Segment(float aX, float aY, float aZ, float bX, float bY, float bZ)
aX
- the x-coordinate of the first pointaY
- the y-coordinate of the first pointaZ
- the z-coordinate of the first pointbX
- the x-coordinate of the second pointbY
- the y-coordinate of the second pointbZ
- the z-coordinate of the second point