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

VRageMath.MyMath

Morten Aune Lyrstad edited this page Apr 16, 2022 · 41 revisions

IndexNamespace Index

MyMath Class

public abstract sealed class MyMath

Namespace: VRageMath
Assembly: VRage.Math.dll

Fields

Member Description
static Vector3 Vector3One

Methods

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