C# Class control.util

Util class that provide some utility function that is used by Gesture classes.
Exibir arquivo Open project: mahmoudbahaa/XNA-Game-project

Public Methods

Method Description
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

Method Details

GetAngle() public static method

get angle between 3 points
public static GetAngle ( Vector3 a, Vector3 b, Vector3 c ) : float
a Vector3
b Vector3
c Vector3
return float

Xangle() public static method

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
return float

Zangle() public static method

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
return float

toDegree() public static method

public static toDegree ( float rad ) : float
rad float
return float