A plane is an infinite flat surface in 3D space with a direction and distance from the origin.
| Property | Type | Description |
|---|---|---|
| x, y, z | number | normal |
| d | number | distance from the origin |
| Plane | Constructor | Plane(number x, number y, number z, number d) |
| Plane | Constructor | Plane(Vec3 point, Vec3 normal) |
| Plane | Constructor | Plane(Vec3 a, Vec3 b, Vec3 c) |
| DistanceToPoint | Method | gets the shortest distance between the plane and a point |
| IntersectsLine | Method | test if the plane intersects a line or line segment |