C# Класс LeopotamGroup.Math.MathFast

Holder of extensions / helpers.
Показать файл Открыть проект

Открытые методы

Метод Описание
Atan2 ( float y, float x ) : float

Fast Atan2 with 0.02 threshold error.

Cos ( float v ) : float

Fast Cos with 0.0003 threshold error.

NormalizedFast ( this v ) : Vector2

Fast Vector2 normalization with 0.001 threshold error.

NormalizedFast ( this v ) : Vector3

Fast Vector3 normalization with 0.001 threshold error.

Sin ( float v ) : float

Fast Sin with 0.0003 threshold error.

Приватные методы

Метод Описание
MathFast ( ) : System.Runtime.InteropServices

Описание методов

Atan2() публичный статический Метод

Fast Atan2 with 0.02 threshold error.
public static Atan2 ( float y, float x ) : float
y float
x float
Результат float

Cos() публичный статический Метод

Fast Cos with 0.0003 threshold error.
public static Cos ( float v ) : float
v float Angle in radians.
Результат float

NormalizedFast() публичный статический Метод

Fast Vector2 normalization with 0.001 threshold error.
public static NormalizedFast ( this v ) : Vector2
v this
Результат UnityEngine.Vector2

NormalizedFast() публичный статический Метод

Fast Vector3 normalization with 0.001 threshold error.
public static NormalizedFast ( this v ) : Vector3
v this
Результат UnityEngine.Vector3

Sin() публичный статический Метод

Fast Sin with 0.0003 threshold error.
public static Sin ( float v ) : float
v float Angle in radians.
Результат float