public class LineSegmentf extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
float |
aX
The x coordinate of the first point.
|
float |
aY
The y coordinate of the first point.
|
float |
aZ
The z coordinate of the first point.
|
float |
bX
The x coordinate of the second point.
|
float |
bY
The y coordinate of the second point.
|
float |
bZ
The z coordinate of the second point.
|
| Constructor and Description |
|---|
LineSegmentf()
Create a new
LineSegmentf of zero length on the point (0, 0, 0). |
LineSegmentf(float aX,
float aY,
float aZ,
float bX,
float bY,
float bZ)
Create a new
LineSegmentf between the two points. |
LineSegmentf(LineSegmentf source)
Create a new
LineSegmentf as a copy of the given source. |
LineSegmentf(Vector3fc a,
Vector3fc b)
Create a new
LineSegmentf between the given two points. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
String |
toString()
Return a string representation of this line segment.
|
String |
toString(NumberFormat formatter)
Return a string representation of this line segment by formatting the vector components with the given
NumberFormat. |
void |
writeExternal(ObjectOutput out) |
public float aX
public float aY
public float aZ
public float bX
public float bY
public float bZ
public LineSegmentf()
LineSegmentf of zero length on the point (0, 0, 0).public LineSegmentf(LineSegmentf source)
LineSegmentf as a copy of the given source.source - the LineSegmentf to copy frompublic LineSegmentf(Vector3fc a, Vector3fc b)
LineSegmentf between the given two points.a - the first pointb - the second pointpublic LineSegmentf(float aX,
float aY,
float aZ,
float bX,
float bY,
float bZ)
LineSegmentf between the two points.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 pointpublic String toString()
This method creates a new DecimalFormat on every invocation with the format string "0.000E0;-".
public String toString(NumberFormat formatter)
NumberFormat.formatter - the NumberFormat used to format the vector components withpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015–2019 JOML. All rights reserved.