C# Класс control.util

Util class that provide some utility function that is used by Gesture classes.
Показать файл Открыть проект

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

Метод Описание
GetAngle ( Vector3 a, Vector3 b, Vector3 c ) : float

get angle between 3 points

Xangle ( Vector3 v1, Vector3 v2 ) : float

calculate angle between 2 point and the x-axis and return its degree value

Zangle ( Vector3 v1, Vector3 v2 ) : float

calculate angle between 2 point and the z-axis and return its degree value

toDegree ( float rad ) : float

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

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

get angle between 3 points
public static GetAngle ( Vector3 a, Vector3 b, Vector3 c ) : float
a Vector3
b Vector3
c Vector3
Результат float

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

calculate angle between 2 point and the x-axis and return its degree value
public static Xangle ( Vector3 v1, Vector3 v2 ) : float
v1 Vector3
v2 Vector3
Результат float

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

calculate angle between 2 point and the z-axis and return its degree value
public static Zangle ( Vector3 v1, Vector3 v2 ) : float
v1 Vector3
v2 Vector3
Результат float

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

public static toDegree ( float rad ) : float
rad float
Результат float