public final class Cad3DPointHelper extends Object
Helper class of 3D points
| Constructor and Description |
|---|
Cad3DPointHelper() |
| Modifier and Type | Method and Description |
|---|---|
static double |
angleBetween3Points(Cad3DPoint a,
Cad3DPoint b,
Cad3DPoint c)
Angles the between3 points.
|
static Cad3DPoint |
cross(Cad3DPoint vc1,
Cad3DPoint vc2)
The cross product of two vectors.
|
static double |
distance(Cad3DPoint point,
Cad3DPoint destination)
The distance.
|
static double |
dot(Cad3DPoint vc1,
Cad3DPoint vc2)
The dot product of two vectors.
|
static Cad3DPoint |
inverse(Cad3DPoint point)
Inverses this instance.
|
static double |
length(Cad3DPoint point)
The length.
|
static Cad3DPoint |
max(Cad3DPoint pt1,
Cad3DPoint pt2)
The maximum of two points.
|
static Cad3DPoint |
min(Cad3DPoint pt1,
Cad3DPoint pt2)
The minimum of two points.
|
static Cad3DPoint |
rotatePoint(Cad3DPoint pointToRotate,
Cad3DPoint centerPoint,
double angleInRadians)
Rotates one point arount another one
|
public static double angleBetween3Points(Cad3DPoint a, Cad3DPoint b, Cad3DPoint c)
Angles the between3 points.
a - First Pointb - second pointc - third pointpublic static Cad3DPoint rotatePoint(Cad3DPoint pointToRotate, Cad3DPoint centerPoint, double angleInRadians)
Rotates one point arount another one
pointToRotate - the point to rotatecenterPoint - the centre point of rotationangleInRadians - The angle In Radians.public static double distance(Cad3DPoint point, Cad3DPoint destination)
The distance.
destination - The destination.double.public static double length(Cad3DPoint point)
The length.
double.public static Cad3DPoint cross(Cad3DPoint vc1, Cad3DPoint vc2)
The cross product of two vectors.
vc1 - The first vectorvc2 - The second vectorpublic static double dot(Cad3DPoint vc1, Cad3DPoint vc2)
The dot product of two vectors.
vc1 - The first vectorvc2 - The second vectorpublic static Cad3DPoint min(Cad3DPoint pt1, Cad3DPoint pt2)
The minimum of two points.
pt1 - The first pointpt2 - The second pointpublic static Cad3DPoint max(Cad3DPoint pt1, Cad3DPoint pt2)
The maximum of two points.
pt1 - The first pointpt2 - The second pointpublic static Cad3DPoint inverse(Cad3DPoint point)
Inverses this instance.