public final class Straight3D
extends java.lang.Object
This is the complement to the Vector3D which represents a
Point with a third, homogeneous coordinate.
| Modifier and Type | Method and Description |
|---|---|
Vector3D |
getIntersection(Straight3D other)
Returns the intersection between this and the given other
Straight3D. |
Straight3D |
getOrtho()
|
Straight3D |
getOrtho(Vector3D vp)
Returns the orthogonal
Straight3D through the given
Vector3D. |
double |
getSignedDistanceCW(Vector3D vp)
Returns the clock-wise signed distance of the given
Vector3D to
this Straight3D. |
static Straight3D |
through(Vector3D start,
Vector3D end)
Constructs a new
Straight3D through the given start and end
Vector3Ds. |
Straight |
toStraight()
Transfer this
Straight3D into a representative Straight. |
public static Straight3D through(Vector3D start, Vector3D end)
Straight3D through the given start and end
Vector3Ds.start - The first Vector3D which lies on to the
Straight3D which is constructed.end - The second Vector3D which lies on the
Straight3D which is constructed.Straight3D through start and end Vector3Dspublic Vector3D getIntersection(Straight3D other)
Straight3D. The intersection is the cross product of both
Vector3Ds.other - The Straight3D for which intersections are computed.Straight3Dpublic Straight3D getOrtho()
Straight3D through this Straight3D
's start Vector3Dpublic Straight3D getOrtho(Vector3D vp)
Straight3D through the given
Vector3D.vp - The Vector3D which lies on the orthogonal
Straight3D.Straight3D through the given
Vector3Dpublic double getSignedDistanceCW(Vector3D vp)
Vector3D to
this Straight3D. The clock-wise signed distance is the dot
product of the both Vector3Ds divided by the length of the line's
(x,y) vector: |(x,y)|.vp - The Vector3D to which the distance is computed.Vector3D to this
Straight3Dpublic Straight toStraight()
Straight3D into a representative Straight.StraightCopyright (c) 2014 itemis AG, and others. All rights reserved.