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

VRageMath.PlaneD

Malware edited this page Dec 21, 2018 · 51 revisions

Index

PlaneD Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Defines a PlaneD.

Fields

_Vector3D Normal_ The normal vector of the PlaneD.
_double D_ The distance of the PlaneD 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
_bool Equals(PlaneD other)_ Determines whether the specified PlaneD is equal to the PlaneD.
_bool Equals(Object obj)_ Determines whether the specified Object is equal to the PlaneD.
_int GetHashCode()_ Gets the hash code for this object.
_string ToString()_ Returns a String that represents the current PlaneD.
_void Normalize()_ Changes the coefficients of the Normal vector of this PlaneD to make it of unit length.
static _PlaneD Normalize(PlaneD value)_ Changes the coefficients of the Normal vector of a PlaneD to make it of unit length.
static _void Normalize(ref PlaneD value, ref PlaneD result)_ Changes the coefficients of the Normal vector of a PlaneD to make it of unit length.
static _PlaneD Transform(PlaneD plane, MatrixD matrix)_ Transforms a normalized PlaneD by a Matrix.
static _void Transform(ref PlaneD plane, ref MatrixD matrix, ref PlaneD result)_ Transforms a normalized PlaneD by a Matrix.
_double Dot(Vector4 value)_ Calculates the dot product of a specified Vector4 and this PlaneD.
_void Dot(ref Vector4 value, ref double result)_ Calculates the dot product of a specified Vector4 and this PlaneD.
_double DotCoordinate(Vector3D value)_ Returns the dot product of a specified Vector3D and the Normal vector of this PlaneD plus the distance (D) value of the PlaneD.
_void DotCoordinate(ref Vector3D value, ref double result)_ Returns the dot product of a specified Vector3D and the Normal vector of this PlaneD plus the distance (D) value of the PlaneD.
_double DotNormal(Vector3D value)_ Returns the dot product of a specified Vector3D and the Normal vector of this PlaneD.
_void DotNormal(ref Vector3D value, ref double result)_ Returns the dot product of a specified Vector3D and the Normal vector of this PlaneD.
_PlaneIntersectionType Intersects(BoundingBoxD box)_ Checks whether the current PlaneD intersects a specified BoundingBox.
_void Intersects(ref BoundingBoxD box, ref PlaneIntersectionType result)_ Checks whether the current PlaneD intersects a BoundingBox.
_PlaneIntersectionType Intersects(BoundingFrustumD frustum)_ Checks whether the current PlaneD intersects a specified BoundingFrustum.
_PlaneIntersectionType Intersects(BoundingSphereD sphere)_ Checks whether the current PlaneD intersects a specified BoundingSphere.
_void Intersects(ref BoundingSphere sphere, ref PlaneIntersectionType result)_ Checks whether the current PlaneD intersects a BoundingSphere.
_Vector3D RandomPoint()_
_double DistanceToPoint(Vector3D point)_
_double DistanceToPoint(ref Vector3D point)_
_Vector3D ProjectPoint(ref Vector3D point)_
_Vector3D Intersection(ref Vector3D from, ref Vector3D direction)_ Gets intersection point in Plane.

Clone this wiki locally