-
init(v1, v2, v3)
-
Plane init from 3 points
Parameters:
Name |
Type |
Description |
v1 |
|
Point 1 |
v2 |
|
Point 2 |
v3 |
|
Point 3 |
-
-
Transform the plane with the given matrix
Parameters:
Name |
Type |
Description |
matrix |
|
Transformation matrix |
-
intersectSphere(center, radius)
-
Intersection test between plane and bounding sphere.
Parameters:
Name |
Type |
Description |
center |
|
Center |
radius |
|
Radius |
Returns:
- 1 if the bounding sphere is completely above plane,
- 0 if the bounding sphere intersects the plane,
- -1 if the bounding sphere is completely below the plane.
-
Type
-
Integer
-
distance(point)
-
Return the distance between a point and the plane
Parameters:
Name |
Type |
Description |
point |
|
Point |
Returns:
Distance
-
Type
-
Float
-
intersectBoundingBox(bbox)
-
Intersection test between plane and bounding box.
Parameters:
Returns:
- 1 if the bbox is completely above plane,
- 0 if the bbox intersects the plane,
- -1 if the bbox is completely below the plane.
-
Type
-
Integer