C# 클래스 control.util

Util class that provide some utility function that is used by Gesture classes.
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project

공개 메소드들

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