Show / Hide Table of Contents

Class NumericHelper

Adds some required numeric translations

Inheritance
Object
NumericHelper
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Helpers
Assembly: SlipeShared.dll
Syntax
public class NumericHelper

Methods

| Improve this Doc View Source

EulerToQuaternion(Vector3)

Translate an MTA Euler Rotation to a Quaternion

Declaration
public static Quaternion EulerToQuaternion(Vector3 rotation)
Parameters
Type Name Description
Vector3 rotation
Returns
Type Description
Quaternion
| Improve this Doc View Source

QuaternionToEuler(Quaternion)

Translate a Quaternion to an MTA Euler Rotation

Declaration
public static Vector3 QuaternionToEuler(Quaternion q)
Parameters
Type Name Description
Quaternion q
Returns
Type Description
Vector3
| Improve this Doc View Source

RotationBetweenPositions(Vector3, Vector3)

Get a vector that describes the rotation between two vectors

Declaration
public static Vector3 RotationBetweenPositions(Vector3 position1, Vector3 position2)
Parameters
Type Name Description
Vector3 position1
Vector3 position2
Returns
Type Description
Vector3

A rotation vector

| Improve this Doc View Source

ToDegrees(Single)

Convert radians to degrees

Declaration
public static float ToDegrees(float x)
Parameters
Type Name Description
Single x
Returns
Type Description
Single
| Improve this Doc View Source

ToRadians(Single)

Convert degrees to radians

Declaration
public static float ToRadians(float x)
Parameters
Type Name Description
Single x
Returns
Type Description
Single
  • Improve this Doc
  • View Source
Back to top Generated by DocFX