public interface Line3d
Modifier and Type | Method and Description |
---|---|
static Line3d |
create(Vector3d firstPoint,
Vector3d secondPoint)
Creates a new instance.
|
double |
distance(MVector3d point)
Calculates the distance of a point from this line.
|
double |
distanceSqr(MVector3d point)
Calculates the squared distance of a point from this line.
|
Vector3d |
getDirection()
Returns the normalized direction vector of this line.
|
Vector3d |
getFirstPoint()
Returns the first bootstrapping point of this line.
|
Optional<MVector3d> |
getIntersectionPoint(Plane plane)
Returns the point of intersection between this line and the given plane.
|
Vector3d |
getSecondPoint()
Returns the second bootstrapping point of this line.
|
boolean |
intersects(AABB3d aabb)
Returns true if the line intersects the axis-aligned bounding box, false
otherwise.
|
static Line3d create(Vector3d firstPoint, Vector3d secondPoint)
firstPoint
- the first pointsecondPoint
- the second pointVector3d getFirstPoint()
Vector3d getSecondPoint()
Vector3d getDirection()
Optional<MVector3d> getIntersectionPoint(Plane plane)
plane
- the plane with which the intersection is returneddouble distanceSqr(MVector3d point)
point
- the pointdouble distance(MVector3d point)
point
- the pointboolean intersects(AABB3d aabb)
aabb
- the axis-aligned bounding box with which this is checked for
intersectionCopyright © 2019 Solibri, Inc.. All rights reserved.