C# 클래스 LeopotamGroup.Math.MathFast

Holder of extensions / helpers.
파일 보기 프로젝트 열기: Leopotam/LeopotamGroupLibraryUnity

공개 메소드들

메소드 설명
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