| Modifier and Type | Field and Description |
|---|---|
| public final Vector3 | a
the starting position |
| public final Vector3 | b
the ending position |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Segment(float
the x-coordinate of the first point aX, float the y-coordinate of the first point aY, float the z-coordinate of the first point aZ, float the x-coordinate of the second point bX, float the y-coordinate of the second point bY, float the z-coordinate of the second point bZ)Constructs a new Segment from the two points given. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public float | |
| public float |
| a | back to summary |
|---|---|
| public final Vector3 a the starting position | |
| b | back to summary |
|---|---|
| public final Vector3 b the ending position | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Segment | back to summary |
|---|---|
| public Segment(Vector3 a, Vector3 b) Constructs a new Segment from the two points given. | |
| Segment | back to summary |
|---|---|
| public Segment(float aX, float aY, float aZ, float bX, float bY, float bZ) Constructs a new Segment from the two points given.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| len | back to summary |
|---|---|
| public float len() | |
| len2 | back to summary |
|---|---|
| public float len2() | |