position of plane or parsable plane definition
if p1OrDef is a point and
p3 is null, then
this parameter will define the plane normal (null)
if defined, then p1OrDef and
normalOrP2 will define the first two points of a three point plane
definition
Staticxya XY plane through the origin
Staticxza XZ plane through the origin
Staticyza YZ plane through the origin
Two planes are considered equal if they are parallel, and the same point exists on both planes.
If the plane normal direction also needs to be compared, then use includeNormal = true.
true if two planes are parallel to each other.
Returns intersect line of two planes. Returns null if planes are parallel
and have no intersect.
intersect line
true if line is parallel to plane.
Returns the intersect point for a line (extended to infinity) with a plane.
intersect point. null if the line does not
intersect
true if a line lies within the plane
intersect point. null if the line does not
intersect
Object representing a plane.
Contains methods that makes it convenient to operate on planes, points and lines.
A plane can either be created with:
If defined with 3 points P1, P2, and P3, then the normal will be in the direction of the cross product of vectors P1P2 and P1P3.
Example