Public Member Functions | |
Vector4 (float x, float y, float z, float w) | |
float | Dot (Vector4 vec) |
override string | ToString () |
override int | GetHashCode () |
override bool | Equals (object obj) |
Static Public Member Functions | |
Vector4 | Multiply (Vector4 vector, Matrix4 matrix) |
Vector4 | operator * (Matrix4 matrix, Vector4 vector) |
Vector4 | operator * (Vector4 vector, Matrix4 matrix) |
bool | operator== (Vector4 left, Vector4 right) |
Vector4 | operator- (Vector4 left) |
bool | operator!= (Vector4 left, Vector4 right) |
Public Attributes | |
float | x |
float | y |
float | z |
float | w |
Properties | |
float | this [int index] |
|
Creates a new 4 dimensional Vector. |
|
Calculates the dot (scalar) product of this vector with another. Vector with which to calculate the dot product (together with this one). A float representing the dot product value. |
|
Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class. |
|
Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class. <p/> The standard implementation is a simple XOR operation between all local member variables. |
|
|
|
|
|
User to compare two Vector4 instances for inequality. true or false |
|
Used to negate the elements of a vector. |
|
User to compare two Vector4 instances for equality. true or false |
|
Overrides the Object.ToString() method to provide a text representation of a Vector4. A string representation of a Vector4. |
|
Used to access a Vector by index 0 = this.x, 1 = this.y, 2 = this.z, 3 = this.w. Uses unsafe pointer arithmetic to reduce the code required. |