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 Vector3One

Methods

Member Description
static InitializeFastSin()
static FastSin(float)
static FastCos(float)
static FastTanH(float) Fast approximation of Hyperbolic tangent Max deviation is <3%
static NormalizeAngle(float, float)
static ArcTanAngle(float, float) ArcTanAngle
static Abs(ref Vector3)
static MaxComponents(ref Vector3, ref Vector3) Return vector with each component max
static AngleTo(Vector3, Vector3) AngleTo
static AngleBetween(Vector3, Vector3)
static CosineDistance(ref Vector3, ref Vector3)
static CosineDistance(ref Vector3D, ref Vector3D)
static Mod(int, int)
static Mod(long, int)
static QuaternionToEuler(Quaternion) QuaternionToEuler
static ForwardVectorProjection(Vector3, 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 CreateFromInsideRadius(float)
static VectorFromColor(byte, byte, byte) Calculates color from vector
static VectorFromColor(byte, byte, byte, byte)
static DistanceSquaredFromLineSegment(Vector3, Vector3, Vector3) Return minimum distance between line segment v-w and point p.
static Clamp(float, float, float)

Clone this wiki locally