public class LineSegmentd extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
double |
aX
The x coordinate of the first point.
|
double |
aY
The y coordinate of the first point.
|
double |
aZ
The z coordinate of the first point.
|
double |
bX
The x coordinate of the second point.
|
double |
bY
The y coordinate of the second point.
|
double |
bZ
The z coordinate of the second point.
|
| Constructor and Description |
|---|
LineSegmentd()
Create a new
LineSegmentd of zero length on the point (0, 0, 0). |
LineSegmentd(double aX,
double aY,
double aZ,
double bX,
double bY,
double bZ)
Create a new
LineSegmentd between the two points. |
LineSegmentd(LineSegmentd source)
Create a new
LineSegmentd as a copy of the given source. |
LineSegmentd(org.joml.Vector3dc a,
org.joml.Vector3dc b)
Create a new
LineSegmentd 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 double aX
public double aY
public double aZ
public double bX
public double bY
public double bZ
public LineSegmentd()
LineSegmentd of zero length on the point (0, 0, 0).public LineSegmentd(LineSegmentd source)
LineSegmentd as a copy of the given source.source - the LineSegmentd to copy frompublic LineSegmentd(org.joml.Vector3dc a,
org.joml.Vector3dc b)
LineSegmentd between the given two points.a - the first pointb - the second pointpublic LineSegmentd(double aX,
double aY,
double aZ,
double bX,
double bY,
double bZ)
LineSegmentd 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 © 2020 JOML. All rights reserved.