Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.MyMath

Malware edited this page Dec 25, 2018 · 41 revisions

Index

MyMath Class

Namespace: VRageMath
Assembly: VRage.Math.dll

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