C# 클래스 GameMath.Angle

파일 보기 프로젝트 열기: npruehs/game-math

공개 메소드들

메소드 설명
Acos ( float x ) : float

Inverse of the cos function. Returns the angle whose cosine is the specified number, in radians.

Asin ( float x ) : float

Inverse of the sin function. Returns the angle whose sine is the specified number, in radians.

Atan ( float x ) : float

Inverse of the tan function. Returns the angle whose tangent is the specified number, in radians.

Atan2 ( float y, float x ) : float

Returns the angle whose tangent is the quotient of two specified numbers, in radians.

Between ( Vector2F v, Vector2F w ) : float

Returns the angle between the specified vectors in radians.

See http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm for details.

Cos ( float x ) : float

Returns the cosine of the specified angle in radians.

Cosh ( float x ) : float

Returns the hyperbolic cosine of the specified angle in radians.

DegreesToRadians ( float degrees ) : float

Converts the specified angle in degrees to radians.

Delta ( float x, float y ) : float

Shortest difference between the specified angles in radians. Think of this as "how do get from angle y to x". Example: Delta(3/2 Pi, 0) will return -1/2 Pi.

See http://stackoverflow.com/questions/1878907/the-smallest-difference-between-2-angles and http://stackoverflow.com/users/503402/max for details.

FromVector ( Vector2F v ) : float

Returns the angle between the specified vector and the x-axis. Example: FromVector(0.5, 0.5) will return DegreesToRadians(45).

See http://stackoverflow.com/questions/6247153/angle-from-2d-unit-vector for details.

RadiansToDegrees ( float degrees ) : float

Converts the specified angle in radians to degrees.

Sin ( float x ) : float

Returns the sine of the specified angle in radians.

Sinh ( float x ) : float

Returns the hyperbolic sine of the specified angle in radians.

Tan ( float x ) : float

Returns the tangent of the specified angle in radians.

Tanh ( float x ) : float

Returns the hyperbolic tangent of the specified angle in radians.

메소드 상세

Acos() 공개 정적인 메소드

Inverse of the cos function. Returns the angle whose cosine is the specified number, in radians.
public static Acos ( float x ) : float
x float Number to get the acos of.
리턴 float

Asin() 공개 정적인 메소드

Inverse of the sin function. Returns the angle whose sine is the specified number, in radians.
public static Asin ( float x ) : float
x float Number to get the asin of.
리턴 float

Atan() 공개 정적인 메소드

Inverse of the tan function. Returns the angle whose tangent is the specified number, in radians.
public static Atan ( float x ) : float
x float Number to get the atan of.
리턴 float

Atan2() 공개 정적인 메소드

Returns the angle whose tangent is the quotient of two specified numbers, in radians.
public static Atan2 ( float y, float x ) : float
y float Dividend.
x float Divisor.
리턴 float

Between() 공개 정적인 메소드

Returns the angle between the specified vectors in radians.
See http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm for details.
public static Between ( Vector2F v, Vector2F w ) : float
v Vector2F First vector.
w Vector2F Second vector.
리턴 float

Cos() 공개 정적인 메소드

Returns the cosine of the specified angle in radians.
public static Cos ( float x ) : float
x float Angle to get the cosine of.
리턴 float

Cosh() 공개 정적인 메소드

Returns the hyperbolic cosine of the specified angle in radians.
public static Cosh ( float x ) : float
x float Angle to get the hyperbolic cosine of.
리턴 float

DegreesToRadians() 공개 정적인 메소드

Converts the specified angle in degrees to radians.
public static DegreesToRadians ( float degrees ) : float
degrees float /// Degrees to convert to radians. ///
리턴 float

Delta() 공개 정적인 메소드

Shortest difference between the specified angles in radians. Think of this as "how do get from angle y to x". Example: Delta(3/2 Pi, 0) will return -1/2 Pi.
See http://stackoverflow.com/questions/1878907/the-smallest-difference-between-2-angles and http://stackoverflow.com/users/503402/max for details.
public static Delta ( float x, float y ) : float
x float First angle.
y float Second angle.
리턴 float

FromVector() 공개 정적인 메소드

Returns the angle between the specified vector and the x-axis. Example: FromVector(0.5, 0.5) will return DegreesToRadians(45).
See http://stackoverflow.com/questions/6247153/angle-from-2d-unit-vector for details.
public static FromVector ( Vector2F v ) : float
v Vector2F Vector to get the angle of.
리턴 float

RadiansToDegrees() 공개 정적인 메소드

Converts the specified angle in radians to degrees.
public static RadiansToDegrees ( float degrees ) : float
degrees float /// Radians to convert to degrees. ///
리턴 float

Sin() 공개 정적인 메소드

Returns the sine of the specified angle in radians.
public static Sin ( float x ) : float
x float Angle to get the sine of.
리턴 float

Sinh() 공개 정적인 메소드

Returns the hyperbolic sine of the specified angle in radians.
public static Sinh ( float x ) : float
x float Angle to get the hyperbolic sine of.
리턴 float

Tan() 공개 정적인 메소드

Returns the tangent of the specified angle in radians.
public static Tan ( float x ) : float
x float Angle to get the tangent of.
리턴 float

Tanh() 공개 정적인 메소드

Returns the hyperbolic tangent of the specified angle in radians.
public static Tanh ( float x ) : float
x float Angle to get the hyperbolic tangent of.
리턴 float