C# Class Afterglow.Math.Vector4

Mostra file Open project: Christof/afterglow

Public Methods

Method Description
ToString ( ) : string

Returns the fully qualified type name of this instance.

ToVector3 ( ) : Vector3

Returns the 3d part of the vector.

Vector4 ( Vector3 vector3, float scalar ) : System

Initializes a new instance of the Vector4 struct.

Vector4 ( float values ) : System

Initializes a new instance of the Vector4 struct.

Vector4 ( float x, float y, float z, float w ) : System

Initializes a new instance of the Vector3 struct.

operator ( ) : Vector4

Implements the division operator with a scalar as divisor.

this ( int index ) : float

Gets the value at the specified axis.

Method Details

ToString() public method

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

ToVector3() public method

Returns the 3d part of the vector.
public ToVector3 ( ) : Vector3
return Vector3

Vector4() public method

Initializes a new instance of the Vector4 struct.
public Vector4 ( Vector3 vector3, float scalar ) : System
vector3 Vector3 The vector3.
scalar float The scalar.
return System

Vector4() public method

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

Vector4() public method

Initializes a new instance of the Vector3 struct.
public Vector4 ( float x, float y, float z, float w ) : 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.
w float The value for the W-axis.
return System

operator() public static method

Implements the division operator with a scalar as divisor.
public static operator ( ) : Vector4
return Vector4

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; 3 -> w-axis.
return float