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

VRageMath.MyMath

Malware edited this page Dec 21, 2018 · 42 revisions

Index

MyMath Class

Namespace: VRageMath
Assembly: VRage.Math.dll

Fields

Member Description
static VRageMath.Vector3 Vector3One

Methods

Member Description
static void InitializeFastSin()
static float FastSin(float)
static float FastCos(float)
static float FastTanH(float) Fast approximation of Hyperbolic tangent Max deviation is <3%
static float NormalizeAngle(float, float)
static float ArcTanAngle(float, float) ArcTanAngle
static VRageMath.Vector3 Abs(ref VRageMath.Vector3)
static VRageMath.Vector3 MaxComponents(ref VRageMath.Vector3, ref VRageMath.Vector3) Return vector with each component max
static VRageMath.Vector3 AngleTo(VRageMath.Vector3, VRageMath.Vector3) AngleTo
static float AngleBetween(VRageMath.Vector3, VRageMath.Vector3)
static float CosineDistance(ref VRageMath.Vector3, ref VRageMath.Vector3)
static double CosineDistance(ref VRageMath.Vector3D, ref VRageMath.Vector3D)
static int Mod(int, int)
static long Mod(long, int)
static VRageMath.Vector3 QuaternionToEuler(VRageMath.Quaternion) QuaternionToEuler
static VRageMath.Vector3 ForwardVectorProjection(VRageMath.Vector3, VRageMath.Vector3) This projection results to initial velocity of non-engine objects, which parents move in some velocity We want to add only forward speed of the parent to the forward direction of the object, and if parent is going backward, no speed is added.
static VRageMath.BoundingBox CreateFromInsideRadius(float)
static VRageMath.Vector3 VectorFromColor(byte, byte, byte) Calculates color from vector
static VRageMath.Vector4 VectorFromColor(byte, byte, byte, byte)
static float DistanceSquaredFromLineSegment(VRageMath.Vector3, VRageMath.Vector3, VRageMath.Vector3) Return minimum distance between line segment v-w and point p.
static float Clamp(float, float, float)

Clone this wiki locally