Definition at line 8 of file Plane.cs.
◆ Plane() [1/3]
Creates a plane.
- Parameters
-
Definition at line 56 of file Plane.cs.
◆ Plane() [2/3]
FalcoEngine.Plane.Plane |
( |
Vector3 |
inNormal, |
|
|
float |
d |
|
) |
| |
Creates a plane.
- Parameters
-
Definition at line 67 of file Plane.cs.
◆ Plane() [3/3]
Creates a plane.
- Parameters
-
Definition at line 79 of file Plane.cs.
◆ ClosestPointOnPlane()
For a given point returns the closest point on the plane.
- Parameters
-
point | The point to project onto the plane. |
- Returns
- A point on the plane that is closest to point.
Definition at line 146 of file Plane.cs.
◆ Flip()
void FalcoEngine.Plane.Flip |
( |
| ) |
|
Makes the plane face in the opposite direction.
Definition at line 111 of file Plane.cs.
◆ GetDistanceToPoint()
float FalcoEngine.Plane.GetDistanceToPoint |
( |
Vector3 |
point | ) |
|
Returns a signed distance from plane to point.
- Parameters
-
Definition at line 156 of file Plane.cs.
◆ GetSide()
bool FalcoEngine.Plane.GetSide |
( |
Vector3 |
point | ) |
|
Is a point on the positive side of the plane?
- Parameters
-
Definition at line 165 of file Plane.cs.
◆ Raycast()
bool FalcoEngine.Plane.Raycast |
( |
Ray |
ray, |
|
|
out float |
enter |
|
) |
| |
◆ SameSide()
Are two points on the same side of the plane?
- Parameters
-
Definition at line 175 of file Plane.cs.
◆ Set3Points()
Sets a plane using three points that lie within it. The points go around clockwise as you look down on the top surface of the plane.
- Parameters
-
a | First point in clockwise order. |
b | Second point in clockwise order. |
c | Third point in clockwise order. |
Definition at line 102 of file Plane.cs.
◆ SetNormalAndPosition()
void FalcoEngine.Plane.SetNormalAndPosition |
( |
Vector3 |
inNormal, |
|
|
Vector3 |
inPoint |
|
) |
| |
Sets a plane using a point that lies within it along with a normal to orient it.
- Parameters
-
inNormal | The plane's normal vector. |
inPoint | A point that lies on the plane. |
Definition at line 90 of file Plane.cs.
◆ ToString() [1/2]
override string FalcoEngine.Plane.ToString |
( |
| ) |
|
◆ ToString() [2/2]
string FalcoEngine.Plane.ToString |
( |
string |
format | ) |
|
◆ Translate() [1/2]
Returns a copy of the given plane that is moved in space by the given translation.
- Parameters
-
plane | The plane to move in space. |
translation | The offset in space to move the plane with. |
- Returns
- The translated plane.
Definition at line 134 of file Plane.cs.
◆ Translate() [2/2]
void FalcoEngine.Plane.Translate |
( |
Vector3 |
translation | ) |
|
Moves the plane in space by the translation vector.
- Parameters
-
translation | The offset in space to move the plane with. |
Definition at line 121 of file Plane.cs.
◆ distance
float FalcoEngine.Plane.distance |
|
getset |
Distance from the origin to the plane.
Definition at line 34 of file Plane.cs.
◆ flipped
Plane FalcoEngine.Plane.flipped |
|
get |
Returns a copy of the plane that faces in the opposite direction.
Definition at line 49 of file Plane.cs.
◆ normal
Normal vector of the plane.
Definition at line 19 of file Plane.cs.
The documentation for this struct was generated from the following file: