public final class PlaneHelper
extends java.lang.Object
Plane objects.Plane| Modifier and Type | Method and Description |
|---|---|
static <D extends ThreeMin> |
calculateIntersectionPoint(Plane p,
Line<Three> l)
Calculates the intersection point of a plane and a line.
|
static <D extends ThreeMin> |
isLineOnPlane(Plane p,
Line<Three> l)
Checks if a line lies completely on a plane
|
static <D extends ThreeMin> |
isLineParallelToPlane(Plane p,
Line<Three> l)
Checks if a line is parallel to a plane.
|
static <D extends ThreeMin> |
isPointOnPlane(Plane plane,
Vec<Three> point)
Checks if a given point lies on a plane.
|
public static <D extends ThreeMin> boolean isPointOnPlane(Plane plane, Vec<Three> point)
plane - the planepoint - the pointjava.lang.NullPointerException - if plane or point is nulljava.lang.IllegalArgumentException - if point lies outside the object spacepublic static <D extends ThreeMin> java.util.Optional<Vec<Three>> calculateIntersectionPoint(Plane p, Line<Three> l)
p - the planel - the lineOptional will be returned.java.lang.NullPointerException - if p or l is nullpublic static <D extends ThreeMin> boolean isLineParallelToPlane(Plane p, Line<Three> l)
p - the planel - the linejava.lang.NullPointerException - if p or l is null