Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.Plane

Morten Aune Lyrstad edited this page Apr 16, 2022 · 50 revisions

IndexNamespace Index

Plane Struct

public struct Plane: IEquatable<Plane>

Defines a plane.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

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)

Vector3 Normal

The normal vector of the Plane.

Constructors

Plane(float a, float b, float c, float d)

Plane(Vector3 normal, float d)

Plane(Vector3 position, Vector3 normal)

Plane(Vector4 value)

Plane(Vector3 point1, Vector3 point2, Vector3 point3)

Plane(ref Vector3 point1, ref Vector3 point2, ref Vector3 point3)

Methods

static Plane Normalize(Plane value)

Changes the coefficients of the Normal vector of a Plane to make it of unit length.

static void Normalize(ref Plane value, out Plane result)

Changes the coefficients of the Normal vector of a Plane to make it of unit length.

static Plane Transform(Plane plane, Matrix matrix)

Transforms a normalized Plane by a Matrix.

static void Transform(ref Plane plane, ref Matrix matrix, out Plane result)

Transforms a normalized Plane by a Matrix.

float Dot(Vector4 value)

Calculates the dot product of a specified Vector4 and this Plane.

void Dot(ref Vector4 value, out float result)

Calculates the dot product of a specified Vector4 and this Plane.

float DotCoordinate(Vector3 value)

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 Vector3 value, out float result)

Returns the dot product of a specified Vector3 and the Normal vector of this Plane plus the distance (D) value of the Plane.

double DotNormal(Vector3D value)

Returns the dot product of a specified Vector3 and the Normal vector of this Plane.

void DotNormal(ref Vector3 value, out float result)

Returns the dot product of a specified Vector3 and the Normal vector of this Plane.

bool Equals(Plane other)

Determines whether the specified Plane is equal to the Plane.

bool Equals(object obj)

Determines whether the specified Object is equal to the Plane.

int GetHashCode()

Gets the hash code for this object.

Vector3D Intersection(ref Vector3D from, ref Vector3D direction)

Gets intersection point in Plane.

PlaneIntersectionType Intersects(BoundingBox box)

Checks whether the current Plane intersects a specified BoundingBox.

void Intersects(ref BoundingBox box, out PlaneIntersectionType result)

Checks whether the current Plane intersects a BoundingBox.

PlaneIntersectionType Intersects(BoundingFrustum frustum)

Checks whether the current Plane intersects a specified BoundingFrustum.

PlaneIntersectionType Intersects(BoundingSphere sphere)

Checks whether the current Plane intersects a specified BoundingSphere.

void Intersects(ref BoundingSphere sphere, out PlaneIntersectionType result)

Checks whether the current Plane intersects a BoundingSphere.

void Normalize()

Changes the coefficients of the Normal vector of this Plane to make it of unit length.

Vector3 RandomPoint()

string ToString()

Returns a String that represents the current Plane.

Clone this wiki locally