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

VRageMath.PlaneD

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

IndexNamespace Index

PlaneD Struct

public struct PlaneD: IEquatable<PlaneD>

Defines a PlaneD.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

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)

Vector3D Normal

The normal vector of the PlaneD.

Constructors

PlaneD(double a, double b, double c, double d)

PlaneD(Vector3D normal, double d)

PlaneD(Vector3D position, Vector3D normal)

PlaneD(Vector3D position, Vector3 normal)

PlaneD(Vector4 value)

PlaneD(Vector3D point1, Vector3D point2, Vector3D point3)

Methods

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, out 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 plane by a Matrix.

static void Transform(ref PlaneD plane, ref MatrixD matrix, out PlaneD result)

Transforms a normalized plane by a Matrix.

double DistanceToPoint(Vector3D point)

double DistanceToPoint(ref Vector3D point)

double Dot(Vector4 value)

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

void Dot(ref Vector4 value, out 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, out 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, out double result)

Returns the dot product of a specified Vector3D and the Normal vector of this PlaneD.

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.

Vector3D Intersection(ref Vector3D from, ref Vector3D direction)

Gets intersection point in Plane.

PlaneIntersectionType Intersects(BoundingBoxD box)

Checks whether the current PlaneD intersects a specified BoundingBox.

void Intersects(ref BoundingBoxD box, out 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, out PlaneIntersectionType result)

Checks whether the current PlaneD intersects a BoundingSphere.

void Normalize()

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

Vector3D ProjectPoint(ref Vector3D point)

Vector3D RandomPoint()

string ToString()

Returns a String that represents the current PlaneD.

Clone this wiki locally