public class LineSegmentd extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
aX |
double |
aY |
double |
aZ |
double |
bX |
double |
bY |
double |
bZ |
| 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(Vector3dc a,
Vector3dc b)
Create a new
LineSegmentd between the given two points. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
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. |
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(Vector3dc a, 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 withCopyright © 2015–2019 JOML. All rights reserved.