Representation of a plane in 3D space.
See Unity Plane for more info.
Members
Properties
Name | Description |
---|
Plane .distance | Distance from the origin to the plane. |
Plane .flipped | Returns a copy of the plane that faces in the opposite direction. (Read only) |
Plane .normal | Normal vector of the plane. |
Constructor
Name | Description |
---|
[Plane(inNormal, inPoint) ](./Plane Constructor 1.md) | Creates a plane. |
[Plane(inNormal, d) ](./Plane Constructor 2.md) | Creates a plane. |
[Plane(a, b, c) ](./Plane Constructor 3.md) | Creates a plane. |
Methods
Static Methods
A plane is an infinitely large, flat surface that exists in 3D space and divides the space into two halves known as half-spaces. It is easy to determine which of the two half-spaces a particular point is in and also how far the point is from the plane. Walls, floors and other flat surfaces are common in games, so a plane is sometimes useful for mathematical calculations with these objects. Also, there are cases where a real surface does not exist but it is useful to imagine that one is there. For example, in sports, a goal line or out-of-bounds line is often assumed to extend into the air, effectively defining a plane.