public interface Plane
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Vector3d point,
double tolerance)
Checks if the distance of the given point for this plane is less than the
given tolerance.
|
static Plane |
create(Vector3d pointOnPlane,
Vector3d planeNormal)
Returns the plane defined by the given points.
|
double |
dihedralAngle(Plane plane)
Calculates the dihedral angle between this plane and the given plane.
|
double |
distance(Vector3d point)
Calculates the distance of this plane from the given point.
|
double |
distanceSquared(Vector3d point)
Calculates the distance of this plane from the given point squared.
|
Vector3d |
getNormal()
Returns the normal of the plane.
|
Vector3d |
getPoint()
Returns a point on the plane used to define the plane.
|
Optional<MLine3d> |
intersect(Plane plane)
Calculates the intersection between this plane and the given plane and
returns the resulting line.
|
MVector3d |
project(Vector3d point)
Projects the given point onto this plane performing an orthogonal
projection.
|
Optional<MVector3d> |
project(Vector3d point,
Vector3d direction)
Projects the given point onto this plane in the direction of the given
direction vector.
|
double |
signedDistance(Vector3d point)
Calculates the signed distance of this plane from the given point.
|
Optional<Double> |
signedDistance(Vector3d point,
Vector3d direction)
Calculates the signed distance of this plane from the given point with
some direction vector.
|
static Plane create(Vector3d pointOnPlane, Vector3d planeNormal)
pointOnPlane
- an arbitrary point on the planeplaneNormal
- the normal of the planeVector3d getPoint()
Vector3d getNormal()
double distanceSquared(Vector3d point)
point
- the pointdouble distance(Vector3d point)
point
- the pointdouble signedDistance(Vector3d point)
point
- the pointOptional<Double> signedDistance(Vector3d point, Vector3d direction)
point
- the pointdirection
- the directionboolean contains(Vector3d point, double tolerance)
point
- the pointtolerance
- the toleranceMVector3d project(Vector3d point)
point
- the pointOptional<MVector3d> project(Vector3d point, Vector3d direction)
point
- the point that is project onto this planedirection
- the direction of the projectingOptional<MLine3d> intersect(Plane plane)
plane
- the other planedouble dihedralAngle(Plane plane)
plane
- the other planeCopyright © 2019 Solibri, Inc.. All rights reserved.