Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Plane

Malware edited this page Dec 21, 2018 · 51 revisions

Index

Plane Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Defines a plane.

Fields

Member Description
VRageMath.Vector3 Normal The normal vector of the Plane.
float D The distance of the Plane along its normal from the origin. Note: Be careful! The distance is signed and is the opposite of what people usually expect. If you look closely at the plane equation: (n dot P) - D = 0, you'll realize that D = - (n dot P) (that is, negative instead of positive)

Methods

Member Description
bool Equals(VRageMath.Plane) Determines whether the specified Plane is equal to the Plane.
bool Equals(System.Object) Determines whether the specified Object is equal to the Plane.
int GetHashCode() Gets the hash code for this object.
string ToString() Returns a String that represents the current Plane.
void Normalize() Changes the coefficients of the Normal vector of this Plane to make it of unit length.
static VRageMath.Plane Normalize(VRageMath.Plane) Changes the coefficients of the Normal vector of a Plane to make it of unit length.
static void Normalize(ref VRageMath.Plane, ref VRageMath.Plane) Changes the coefficients of the Normal vector of a Plane to make it of unit length.
static VRageMath.Plane Transform(VRageMath.Plane, VRageMath.Matrix) Transforms a normalized Plane by a Matrix.
static void Transform(ref VRageMath.Plane, ref VRageMath.Matrix, ref VRageMath.Plane) Transforms a normalized Plane by a Matrix.
float Dot(VRageMath.Vector4) Calculates the dot product of a specified Vector4 and this Plane.
void Dot(ref VRageMath.Vector4, ref float) Calculates the dot product of a specified Vector4 and this Plane.
float DotCoordinate(VRageMath.Vector3) Returns the dot product of a specified Vector3 and the Normal vector of this Plane plus the distance (D) value of the Plane.
void DotCoordinate(ref VRageMath.Vector3, ref float) Returns the dot product of a specified Vector3 and the Normal vector of this Plane plus the distance (D) value of the Plane.
float DotNormal(VRageMath.Vector3) Returns the dot product of a specified Vector3 and the Normal vector of this Plane.
void DotNormal(ref VRageMath.Vector3, ref float) Returns the dot product of a specified Vector3 and the Normal vector of this Plane.
VRageMath.PlaneIntersectionType Intersects(VRageMath.BoundingBox) Checks whether the current Plane intersects a specified BoundingBox.
void Intersects(ref VRageMath.BoundingBox, ref VRageMath.PlaneIntersectionType) Checks whether the current Plane intersects a BoundingBox.
VRageMath.PlaneIntersectionType Intersects(VRageMath.BoundingFrustum) Checks whether the current Plane intersects a specified BoundingFrustum.
VRageMath.PlaneIntersectionType Intersects(VRageMath.BoundingSphere) Checks whether the current Plane intersects a specified BoundingSphere.
void Intersects(ref VRageMath.BoundingSphere, ref VRageMath.PlaneIntersectionType) Checks whether the current Plane intersects a BoundingSphere.
VRageMath.Vector3 RandomPoint()

Clone this wiki locally