API ReferenceSandbox
Planeclass
Represents a plane.
object→Plane
Constructors3
Showing 3 constructors
No results match this filter.
Methods11
Showing 11 methods
public float GetDistance(Vector3 point)
Returns the distance from this plane to given point.
| Parameter | Type | Description |
|---|---|---|
| point | Vector3 | — |
Returns:
float—public static System.Nullable`1<Vector3> GetIntersection(Sandbox.Plane vp1, Sandbox.Plane vp2, Sandbox.Plane vp3)
Gets the intersecting point of the three planes if it exists. If the planes don't all intersect will return null.
| Parameter | Type | Description |
|---|---|---|
| vp1 | Plane | — |
| vp2 | Plane | — |
| vp3 | Plane | — |
public Vector3 ReflectDirection(Vector3 direction)
Reflects a direction across the plane.
| Parameter | Type | Description |
|---|---|---|
| direction | Vector3 | — |
public Vector3 ReflectPoint(Vector3 point)
Reflects a point across the plane.
| Parameter | Type | Description |
|---|---|---|
| point | Vector3 | — |
public Vector3 SnapToPlane(Vector3 point)
Returns closest point on the plane to given point.
| Parameter | Type | Description |
|---|---|---|
| point | Vector3 | — |
public System.Nullable`1<Vector3> Trace(Ray ray, bool twosided = False, double maxDistance = 1.7976931348623157E+308)
Trace a Ray against this plane
| Parameter | Type | Description |
|---|---|---|
| ray | Ray | The origin and direction to trace from |
| twosided = False | bool | If true we'll trace against the underside of the plane too. |
| maxDistance = 1.7976931348623157E+308 | double | The maximum distance from the ray origin to trace |
No results match this filter.
Properties2
Showing 2 properties
No results match this filter.