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

VRageMath.Vector2D

Malware edited this page Dec 21, 2018 · 52 revisions

Index

Vector2D Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Defines a vector with two components.

Fields

Member Description
double X
double Y
Vector2D Zero
Vector2D One
Vector2D UnitX
Vector2D UnitY
Vector2D PositiveInfinity

Properties

Member Description
double Item

Methods

Member Description
string ToString()
bool Equals(Vector2D other) Determines whether the specified Object is equal to the Vector2D.
bool Equals(Object obj) Returns a value that indicates whether the current instance is equal to a specified object.
int GetHashCode()
bool IsValid()
void AssertIsValid()
double Length()
double LengthSquared()
double Distance(Vector2D value1, Vector2D value2)
void Distance(ref Vector2D value1, ref Vector2D value2, ref double result)
double DistanceSquared(Vector2D value1, Vector2D value2)
void DistanceSquared(ref Vector2D value1, ref Vector2D value2, ref double result)
double Dot(Vector2D value1, Vector2D value2)
void Dot(ref Vector2D value1, ref Vector2D value2, ref double result)
void Normalize()
Vector2D Normalize(Vector2D 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 Vector2D value, ref Vector2D result)
Vector2D Reflect(Vector2D vector, Vector2D normal)
void Reflect(ref Vector2D vector, ref Vector2D normal, ref Vector2D result)
Vector2D Min(Vector2D value1, Vector2D value2)
void Min(ref Vector2D value1, ref Vector2D value2, ref Vector2D result)
Vector2D Max(Vector2D value1, Vector2D value2)
void Max(ref Vector2D value1, ref Vector2D value2, ref Vector2D result)
Vector2D Clamp(Vector2D value1, Vector2D min, Vector2D max)
void Clamp(ref Vector2D value1, ref Vector2D min, ref Vector2D max, ref Vector2D result)
Vector2D ClampToSphere(Vector2D vector, double radius)
void ClampToSphere(ref Vector2D vector, double radius)
Vector2D Lerp(Vector2D value1, Vector2D value2, double amount)
void Lerp(ref Vector2D value1, ref Vector2D value2, double amount, ref Vector2D result)
Vector2D Barycentric(Vector2D value1, Vector2D value2, Vector2D value3, double amount1, double amount2)
void Barycentric(ref Vector2D value1, ref Vector2D value2, ref Vector2D value3, double amount1, double amount2, ref Vector2D result)
Vector2D SmoothStep(Vector2D value1, Vector2D value2, double amount)
void SmoothStep(ref Vector2D value1, ref Vector2D value2, double amount, ref Vector2D result)
Vector2D CatmullRom(Vector2D value1, Vector2D value2, Vector2D value3, Vector2D value4, double amount)
void CatmullRom(ref Vector2D value1, ref Vector2D value2, ref Vector2D value3, ref Vector2D value4, double amount, ref Vector2D result)
Vector2D Hermite(Vector2D value1, Vector2D tangent1, Vector2D value2, Vector2D tangent2, double amount)
void Hermite(ref Vector2D value1, ref Vector2D tangent1, ref Vector2D value2, ref Vector2D tangent2, double amount, ref Vector2D result)
Vector2D Transform(Vector2D position, Matrix matrix)
void Transform(ref Vector2D position, ref Matrix matrix, ref Vector2D result)
Vector2D TransformNormal(Vector2D normal, Matrix matrix)
void TransformNormal(ref Vector2D normal, ref Matrix matrix, ref Vector2D result)
Vector2D Transform(Vector2D value, Quaternion rotation)
void Transform(ref Vector2D value, ref Quaternion rotation, ref Vector2D result)
void Transform(Vector2D[] sourceArray, ref Matrix matrix, Vector2D[] destinationArray)
void Transform(Vector2D[] sourceArray, int sourceIndex, ref Matrix matrix, Vector2D[] destinationArray, int destinationIndex, int length)
void TransformNormal(Vector2D[] sourceArray, ref Matrix matrix, Vector2D[] destinationArray)
void TransformNormal(Vector2D[] sourceArray, int sourceIndex, ref Matrix matrix, Vector2D[] destinationArray, int destinationIndex, int length)
void Transform(Vector2D[] sourceArray, ref Quaternion rotation, Vector2D[] destinationArray)
void Transform(Vector2D[] sourceArray, int sourceIndex, ref Quaternion rotation, Vector2D[] destinationArray, int destinationIndex, int length)
Vector2D Negate(Vector2D value) Returns a vector pointing in the opposite direction.
void Negate(ref Vector2D value, ref Vector2D result)
Vector2D Add(Vector2D value1, Vector2D value2)
void Add(ref Vector2D value1, ref Vector2D value2, ref Vector2D result)
Vector2D Subtract(Vector2D value1, Vector2D value2)
void Subtract(ref Vector2D value1, ref Vector2D value2, ref Vector2D result)
Vector2D Multiply(Vector2D value1, Vector2D value2)
void Multiply(ref Vector2D value1, ref Vector2D value2, ref Vector2D result)
Vector2D Multiply(Vector2D value1, double scaleFactor)
void Multiply(ref Vector2D value1, double scaleFactor, ref Vector2D result)
Vector2D Divide(Vector2D value1, Vector2D value2)
void Divide(ref Vector2D value1, ref Vector2D value2, ref Vector2D result)
Vector2D Divide(Vector2D value1, double divider)
void Divide(ref Vector2D value1, double divider, ref Vector2D result)
bool Between(ref Vector2D start, ref Vector2D end)
Vector2D Floor(Vector2D position)
void Rotate(double angle)

Clone this wiki locally