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

VRageMath.Vector3D

Malware edited this page Dec 21, 2018 · 56 revisions

Index

Vector3D Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Defines a vector with three components.

Fields

Member Description
double X
double Y
double Z
Vector3D Zero
Vector3D One
Vector3D Half
Vector3D PositiveInfinity
Vector3D NegativeInfinity
Vector3D UnitX
Vector3D UnitY
Vector3D UnitZ
Vector3D Up
Vector3D Down
Vector3D Right
Vector3D Left
Vector3D Forward
Vector3D Backward
Vector3D MaxValue
Vector3D MinValue

Properties

Member Description
double Sum
double Volume

Methods

Member Description
void TransformNormal(ref Vector3D normal, ref MatrixI matrix, ref Vector3D result)
Vector3D TransformNormal(Vector3D normal, MyBlockOrientation orientation)
void TransformNormal(ref Vector3D normal, MyBlockOrientation orientation, ref Vector3D result)
Vector3D TransformNormal(Vector3D normal, ref MatrixD matrix)
Vector3D Transform(Vector3D value, Quaternion rotation)
void Transform(ref Vector3D value, ref Quaternion rotation, ref Vector3D result)
void Rotate(ref Vector3D vector, ref MatrixD rotationMatrix, ref Vector3D result)
Vector3D Rotate(Vector3D vector, MatrixD rotationMatrix)
void Transform(Vector3D[] sourceArray, ref MatrixD matrix, Vector3D[] destinationArray)
void Transform(Vector3D[] sourceArray, ref MatrixD matrix, *Vector3D destinationArray)
void Transform(Vector3D[] sourceArray, int sourceIndex, ref Matrix matrix, Vector3D[] destinationArray, int destinationIndex, int length)
void TransformNormal(Vector3D[] sourceArray, ref Matrix matrix, Vector3D[] destinationArray)
void TransformNormal(Vector3D[] sourceArray, ref Matrix matrix, *Vector3D destinationArray)
void TransformNormal(Vector3D[] sourceArray, int sourceIndex, ref Matrix matrix, Vector3D[] destinationArray, int destinationIndex, int length)
void Transform(Vector3D[] sourceArray, ref Quaternion rotation, Vector3D[] destinationArray)
void Transform(Vector3D[] sourceArray, int sourceIndex, ref Quaternion rotation, Vector3D[] destinationArray, int destinationIndex, int length)
Vector3D Negate(Vector3D value) Returns a vector pointing in the opposite direction.
void Negate(ref Vector3D value, ref Vector3D result)
Vector3D Add(Vector3D value1, Vector3D value2)
void Add(ref Vector3D value1, ref Vector3D value2, ref Vector3D result)
Vector3D Subtract(Vector3D value1, Vector3D value2)
void Subtract(ref Vector3D value1, ref Vector3D value2, ref Vector3D result)
Vector3D Multiply(Vector3D value1, Vector3D value2)
void Multiply(ref Vector3D value1, ref Vector3D value2, ref Vector3D result)
Vector3D Multiply(Vector3D value1, double scaleFactor)
void Multiply(ref Vector3D value1, double scaleFactor, ref Vector3D result)
Vector3D Divide(Vector3D value1, Vector3D value2)
void Divide(ref Vector3D value1, ref Vector3D value2, ref Vector3D result)
Vector3D Divide(Vector3D value1, double value2)
void Divide(ref Vector3D value1, double value2, ref Vector3D result)
Vector3D CalculatePerpendicularVector(Vector3D v)
void CalculatePerpendicularVector(ref Vector3D result)
void GetAzimuthAndElevation(Vector3D v, ref double azimuth, ref double elevation)
void CreateFromAzimuthAndElevation(double azimuth, double elevation, ref Vector3D direction)
long VolumeInt(double multiplier)
bool IsInsideInclusive(ref Vector3D min, ref Vector3D max)
Vector3D SwapYZCoordinates(Vector3D v)
double GetDim(int i)
void SetDim(int i, double value)
Vector3I Round(Vector3D vect3d)
Vector3I Floor(Vector3D vect3d)
void Fract(ref Vector3D o, ref Vector3D r)
Vector3D Round(Vector3D v, int numDecimals)
void Abs(ref Vector3D vector3D, ref Vector3D abs)
Vector3D ProjectOnPlane(ref Vector3D vec, ref Vector3D planeNormal)
Vector3D ProjectOnVector(ref Vector3D vec, ref Vector3D guideVector)
Vector3D Abs(Vector3D value)
Vector3D Sign(Vector3D value)
Vector3D SignNonZero(Vector3D value) Returns per component sign, never returns zero. For zero component returns sign 1. Faster than Sign.
void Interpolate3(Vector3D v0, Vector3D v1, double rt)
bool IsValid()
void AssertIsValid()
bool IsUnit(ref Vector3D value)
bool ArePerpendicular(ref Vector3D a, ref Vector3D b)
bool IsZero(Vector3D value)
bool IsZero(Vector3D value, double epsilon)
Vector3D IsZeroVector(Vector3D value)
Vector3D IsZeroVector(Vector3D value, double epsilon)
Vector3D Step(Vector3D value)
string ToString()
bool TryParse(string str, ref Vector3D retval)
string ToString(string format)
bool Equals(Vector3D other) Determines whether the specified Object is equal to the Vector3.
bool Equals(Vector3D other, double epsilon)
bool Equals(Object obj) Returns a value that indicates whether the current instance is equal to a specified object.
int GetHashCode()
long GetHash()
double Length()
double LengthSquared()
double Distance(Vector3D value1, Vector3D value2)
double Distance(Vector3D value1, Vector3 value2)
double Distance(Vector3 value1, Vector3D value2)
void Distance(ref Vector3D value1, ref Vector3D value2, ref double result)
double DistanceSquared(Vector3D value1, Vector3D value2)
void DistanceSquared(ref Vector3D value1, ref Vector3D value2, ref double result)
double RectangularDistance(Vector3D value1, Vector3D value2)
double RectangularDistance(ref Vector3D value1, ref Vector3D value2)
double Dot(Vector3D vector1, Vector3D vector2)
double Dot(Vector3D vector1, Vector3 vector2)
void Dot(ref Vector3D vector1, ref Vector3D vector2, ref double result)
void Dot(ref Vector3D vector1, ref Vector3 vector2, ref double result)
void Dot(ref Vector3 vector1, ref Vector3D vector2, ref double result)
double Dot(Vector3D v)
double Dot(Vector3 v)
double Dot(ref Vector3D v)
Vector3D Cross(Vector3D v)
double Normalize()
Vector3D Normalize(Vector3D value) Creates a unit vector from the specified vector. The result is a vector one unit in length pointing in the same direction as the original vector.
void Normalize(ref Vector3D value, ref Vector3D result)
Vector3D Cross(Vector3D vector1, Vector3D vector2)
void Cross(ref Vector3D vector1, ref Vector3D vector2, ref Vector3D result)
Vector3D Reflect(Vector3D vector, Vector3D normal)
void Reflect(ref Vector3D vector, ref Vector3D normal, ref Vector3D result)
Vector3D Reject(Vector3D vector, Vector3D direction)
void Reject(ref Vector3D vector, ref Vector3D direction, ref Vector3D result)
double Min()
double AbsMin()
double Max()
double AbsMax()
int AbsMaxComponent()
Vector3D Min(Vector3D value1, Vector3D value2)
void Min(ref Vector3D value1, ref Vector3D value2, ref Vector3D result)
Vector3D Max(Vector3D value1, Vector3D value2)
void Max(ref Vector3D value1, ref Vector3D value2, ref Vector3D result)
void MinMax(ref Vector3D min, ref Vector3D max)
Vector3D DominantAxisProjection(Vector3D value1) Returns a vector that is equal to the projection of the input vector to the coordinate axis that corresponds to the original vector's largest value.
void DominantAxisProjection(ref Vector3D value1, ref Vector3D result)
Vector3D Clamp(Vector3D value1, Vector3D min, Vector3D max)
void Clamp(ref Vector3D value1, ref Vector3D min, ref Vector3D max, ref Vector3D result)
Vector3D ClampToSphere(Vector3D vector, double radius)
void ClampToSphere(ref Vector3D vector, double radius)
Vector3D Lerp(Vector3D value1, Vector3D value2, double amount)
void Lerp(ref Vector3D value1, ref Vector3D value2, double amount, ref Vector3D result)
Vector3D Barycentric(Vector3D value1, Vector3D value2, Vector3D value3, double amount1, double amount2)
void Barycentric(ref Vector3D value1, ref Vector3D value2, ref Vector3D value3, double amount1, double amount2, ref Vector3D result)
void Barycentric(Vector3D p, Vector3D a, Vector3D b, Vector3D c, ref double u, ref double v, ref double w)
Vector3D SmoothStep(Vector3D value1, Vector3D value2, double amount)
void SmoothStep(ref Vector3D value1, ref Vector3D value2, double amount, ref Vector3D result)
Vector3D CatmullRom(Vector3D value1, Vector3D value2, Vector3D value3, Vector3D value4, double amount)
void CatmullRom(ref Vector3D value1, ref Vector3D value2, ref Vector3D value3, ref Vector3D value4, double amount, ref Vector3D result)
Vector3D Hermite(Vector3D value1, Vector3D tangent1, Vector3D value2, Vector3D tangent2, double amount)
void Hermite(ref Vector3D value1, ref Vector3D tangent1, ref Vector3D value2, ref Vector3D tangent2, double amount, ref Vector3D result)
Vector3D Transform(Vector3D position, MatrixD matrix)
Vector3D Transform(Vector3 position, MatrixD matrix)
Vector3D Transform(Vector3D position, Matrix matrix)
Vector3D Transform(Vector3D position, ref MatrixD matrix)
void Transform(ref Vector3D position, ref MatrixD matrix, ref Vector3D result)
void Transform(ref Vector3 position, ref MatrixD matrix, ref Vector3D result)
void TransformNoProjection(ref Vector3D vector, ref MatrixD matrix, ref Vector3D result)
void RotateAndScale(ref Vector3D vector, ref MatrixD matrix, ref Vector3D result)
void Transform(ref Vector3D position, ref MatrixI matrix, ref Vector3D result)
Vector3D TransformNormal(Vector3D normal, Matrix matrix)
Vector3D TransformNormal(Vector3 normal, MatrixD matrix)
Vector3D TransformNormal(Vector3D normal, MatrixD matrix)
void TransformNormal(ref Vector3D normal, ref MatrixD matrix, ref Vector3D result)
void TransformNormal(ref Vector3 normal, ref MatrixD matrix, ref Vector3D result)

Clone this wiki locally