public class Segment extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
Vector3 |
a
the starting position
|
Vector3 |
b
the ending position
|
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 pointCopyright © 2015. All rights reserved.