This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.MyMath
Malware edited this page Dec 25, 2018
·
42 revisions
← Index
private public abstract sealed MyMath
```csharp
**Namespace:** [VRageMath](VRageMath)
**Assembly:** VRage.Math.dll
### Example
### Remarks
###### Fields
|Member|Description|
|---|---|
|[Vector3One](VRageMath.MyMath.Vector3One)||
###### Methods
|Member|Description|
|---|---|
|[InitializeFastSin()](VRageMath.MyMath.InitializeFastSin)||
|[FastSin(float)](VRageMath.MyMath.FastSin)||
|[FastCos(float)](VRageMath.MyMath.FastCos)||
|[FastTanH(float)](VRageMath.MyMath.FastTanH)|Fast approximation of Hyperbolic tangent Max deviation is <3%|
|[NormalizeAngle(float, float)](VRageMath.MyMath.NormalizeAngle)||
|[ArcTanAngle(float, float)](VRageMath.MyMath.ArcTanAngle)|ArcTanAngle|
|[Abs(ref Vector3)](VRageMath.MyMath.Abs)||
|[MaxComponents(ref Vector3, ref Vector3)](VRageMath.MyMath.MaxComponents)|Return vector with each component max|
|[AngleTo(Vector3, Vector3)](VRageMath.MyMath.AngleTo)|AngleTo|
|[AngleBetween(Vector3, Vector3)](VRageMath.MyMath.AngleBetween)||
|[CosineDistance(ref Vector3, ref Vector3)](VRageMath.MyMath.CosineDistance)||
|[CosineDistance(ref Vector3D, ref Vector3D)](VRageMath.MyMath.CosineDistance)||
|[Mod(int, int)](VRageMath.MyMath.Mod)||
|[Mod(long, int)](VRageMath.MyMath.Mod)||
|[QuaternionToEuler(Quaternion)](VRageMath.MyMath.QuaternionToEuler)|QuaternionToEuler|
|[ForwardVectorProjection(Vector3, Vector3)](VRageMath.MyMath.ForwardVectorProjection)|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)](VRageMath.MyMath.CreateFromInsideRadius)||
|[VectorFromColor(byte, byte, byte)](VRageMath.MyMath.VectorFromColor)|Calculates color from vector|
|[VectorFromColor(byte, byte, byte, byte)](VRageMath.MyMath.VectorFromColor)||
|[DistanceSquaredFromLineSegment(Vector3, Vector3, Vector3)](VRageMath.MyMath.DistanceSquaredFromLineSegment)|Return minimum distance between line segment v-w and point p.|
|[Clamp(float, float, float)](VRageMath.MyMath.Clamp)||Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!