C# 클래스 Afterglow.Math.Vector3

파일 보기 프로젝트 열기: Christof/afterglow 1 사용 예제들

공개 메소드들

메소드 설명
Cross ( Vector3 other ) : Vector3

Returns the cross product of this vector with the given one.

Dot ( Vector3 vector ) : float

Calculates the dot product of the two vectors.

Normalized ( ) : Vector3

Returns a normalized representation of the vector. A normalized vector has a length of 1.

ToString ( ) : string

Returns the fully qualified type name of this instance.

Vector3 ( float values ) : System

Initializes a new instance of the Vector3 struct.

Vector3 ( float x, float y, float z ) : System

Initializes a new instance of the Vector3 struct.

operator ( ) : Vector3

Implements the multiplication operator for a vector and a scalar.

this ( int index ) : float

Gets the value at the specified axis.

메소드 상세

Cross() 공개 메소드

Returns the cross product of this vector with the given one.
public Cross ( Vector3 other ) : Vector3
other Vector3 The other vector.
리턴 Vector3

Dot() 공개 메소드

Calculates the dot product of the two vectors.
public Dot ( Vector3 vector ) : float
vector Vector3 The vector.
리턴 float

Normalized() 공개 메소드

Returns a normalized representation of the vector. A normalized vector has a length of 1.
public Normalized ( ) : Vector3
리턴 Vector3

ToString() 공개 메소드

Returns the fully qualified type name of this instance.
public ToString ( ) : string
리턴 string

Vector3() 공개 메소드

Initializes a new instance of the Vector3 struct.
public Vector3 ( float values ) : System
values float The values.
리턴 System

Vector3() 공개 메소드

Initializes a new instance of the Vector3 struct.
public Vector3 ( float x, float y, float z ) : System
x float The value for the X-axis.
y float The value for the Y-axis.
z float The value for the Z-axis.
리턴 System

operator() 공개 정적인 메소드

Implements the multiplication operator for a vector and a scalar.
public static operator ( ) : Vector3
리턴 Vector3

this() 공개 메소드

Gets the value at the specified axis.
public this ( int index ) : float
index int 0 -> x-axis; 1 -> y-axis; 2 -> z-axis.
리턴 float