Plane3 Type
A plane in 3d space, represented by its normal away from the origin and its distance from the origin, D. Copied from - https://github.com/MonoGame/MonoGame/blob/v3.8/MonoGame.Framework/Ray.cs
Constructors
Constructor | Description |
Full Usage:
Plane3(value)
Parameters:
Vector4
-
A vector holding the normal and distance to origin.
|
|
Full Usage:
Plane3(normal, d)
Parameters:
Vector3
-
The normal of the plane.
d : float32
-
The distance to the origin.
|
|
Full Usage:
Plane3(a, b, c, d)
Parameters:
float32
-
The X component of the normal.
b : float32
-
The Y component of the normal.
c : float32
-
The Z component of the normal.
d : float32
-
The distance to the origin.
|
Create a Plane3 with the first three values as the X, Y and Z components of the normal and the last value as the distance to the origin.
|
|
|
Instance members
Instance member | Description |
Get the dot product of a Vector3 with the Plane3.Normal vector of this Plane3 plus the Plane3.D value of this Plane3. |
|
Get the dot product of a Vector3 with the Plane3.Normal vector of this Plane3 plus the Plane3.D value of this Plane3. |
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
this.Intersects
Parameters: Returns: PlaneIntersectionType
The type of intersection of this Plane3 with the specified Box3.
|
|
Full Usage:
this.Intersects
Parameters:
inref<Box3>
-
The Box3 to test for intersection.
result : byref<PlaneIntersectionType>
-
The type of intersection of this Plane3 with the specified Box3.
|
|
Full Usage:
this.Intersects
Parameters:
Frustum
-
The !:BoundingFrustum to test for intersection.
Returns: PlaneIntersectionType
The type of intersection of this Plane3 with the specified !:BoundingFrustum.
|
|
Full Usage:
this.Intersects
Parameters:
Sphere
-
The !:BoundingSphere to test for intersection.
Returns: PlaneIntersectionType
The type of intersection of this Plane3 with the specified !:BoundingSphere.
|
|
Full Usage:
this.Intersects
Parameters:
inref<Sphere>
-
The !:BoundingSphere to test for intersection.
result : byref<PlaneIntersectionType>
-
The type of intersection of this Plane3 with the specified !:BoundingSphere.
|
|
|
|
|
|
Full Usage:
this.Normalize
|
Normalize the normal vector of this plane. |
|
Static members
Static member | Description |
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
Plane3.Transform(plane, rotation)
Parameters:
Plane3
-
The normalized plane to transform.
rotation : Quaternion
-
The quaternion rotation.
Returns: Plane3
The transformed plane.
|
Transforms a normalized plane by a quaternion rotation.
|
Full Usage:
Plane3.Transform(plane, rotation, result)
Parameters:
byref<Plane3>
-
The normalized plane to transform.
rotation : byref<Quaternion>
-
The quaternion rotation.
result : byref<Plane3>
-
The transformed plane.
|
Transforms a normalized plane by a quaternion rotation.
|