C# Class Afterglow.Math.Vector3

ファイルを表示 Open project: Christof/afterglow Class Usage Examples

Public Methods

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

Method Details

Cross() public method

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

Dot() public method

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

Normalized() public method

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

ToString() public method

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

Vector3() public method

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

Vector3() public method

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.
return System

operator() public static method

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

this() public method

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