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

static _Vector3 Vector3One_
### Methods
static _void InitializeFastSin()_
static _float FastSin(float angle)_
static _float FastCos(float angle)_
static _float FastTanH(float x)_ Fast approximation of Hyperbolic tangent Max deviation is <3%
static _float NormalizeAngle(float angle, float center)_
static _float ArcTanAngle(float x, float y)_ ArcTanAngle
static _Vector3 Abs(ref Vector3 vector)_
static _Vector3 MaxComponents(ref Vector3 a, ref Vector3 b)_ Return vector with each component max
static _Vector3 AngleTo(Vector3 From, Vector3 Location)_ AngleTo
static _float AngleBetween(Vector3 a, Vector3 b)_
static _float CosineDistance(ref Vector3 a, ref Vector3 b)_
static _double CosineDistance(ref Vector3D a, ref Vector3D b)_
static _int Mod(int x, int m)_
static _long Mod(long x, int m)_
static _Vector3 QuaternionToEuler(Quaternion Rotation)_ QuaternionToEuler
static _Vector3 ForwardVectorProjection(Vector3 forwardVector, Vector3 projectedVector)_ 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 _BoundingBox CreateFromInsideRadius(float radius)_
static _Vector3 VectorFromColor(byte red, byte green, byte blue)_ Calculates color from vector
static _Vector4 VectorFromColor(byte red, byte green, byte blue, byte alpha)_
static _float DistanceSquaredFromLineSegment(Vector3 v, Vector3 w, Vector3 p)_ Return minimum distance between line segment v-w and point p.
static _float Clamp(float val, float min, float max)_

Clone this wiki locally