|
Creates a new 3 dimensional Vector. |
|
|
Compares the supplied vector and updates it's x/y/z components of they are higher in value. |
|
Performs a Cross Product operation on 2 vectors, which returns a vector that is perpendicular to the intersection of the 2 vectors. Useful for finding face normals. A vector to perform the Cross Product against. A new Vector3 perpedicular to the 2 original vectors. |
|
Used to divide a vector by a scalar value. |
|
Performs a Dot Product operation on 2 vectors, which produces the angle between them. The vector to perform the Dot Product against. The angle between the 2 vectors. |
|
Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class. |
|
Compares the supplied vector and updates it's x/y/z components of they are lower in value. |
|
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. |
|
Gets the shortest arc quaternion to rotate this vector to the destination vector. Don't call this if you think the dest vector can be close to the inverse of this vector, since then ANY axis of rotation is ok. |
|
Finds the midpoint between the supplied Vector and this vector. |
|
Used when a scalar value is multiplied by a Vector3. |
|
Used when a Vector3 is multiplied by a scalar value. |
|
Used when a Vector3 is multiplied by another vector. |
|
Used to negate the elements of a vector. |
|
Normalizes the vector. This method normalises the vector such that it's length / magnitude is 1. The result is called a unit vector. <p/> This function will not crash for zero-sized vectors, but there will be no changes made to their components. |
|
Used when a scalar value is multiplied by a Vector3. |
|
Used when a Vector3 is multiplied by a scalar value. |
|
Used when a Vector3 is multiplied by another vector. |
|
|
|
User to compare two Vector3 instances for inequality. true or false |
|
|
Used to negate the elements of a vector. |
|
|
Used to divide a vector by a scalar value. |
|
Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against. |
|
User to compare two Vector3 instances for equality. true or false |
|
Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against. |
|
Finds a vector perpendicular to this one. |
|
|
|
Calculates a reflection vector to the plane with the given normal. Assumes this vector is pointing AWAY from the plane, invert if not. Normal vector on which this vector will be reflected. |
|
|
Overrides the Object.ToString() method to provide a text representation of a Vector3. A string representation of a vector3. |
|
Gets the length (magnitude) of this Vector3. The Sqrt operation is expensive, so only use this if you need the exact length of the Vector. If vector lengths are only going to be compared, use LengthSquared instead. |
|
Returns the length (magnitude) of the vector squared. |
|
Gets a Vector3 with the X set to -1, and the others set to 0. |
|
Gets a Vector3 with the Y set to -1, and the others set to 0. |
|
Gets a Vector3 with the Z set to -1, and the others set to 0. |
|
Used to access a Vector by index 0 = x, 1 = y, 2 = z. Uses unsafe pointer arithmetic to reduce the code required. |
|
Gets a Vector3 with all components set to 1. |
|
Gets a Vector3 with the X set to 1, and the others set to 0. |
|
Gets a Vector3 with the Y set to 1, and the others set to 0. |
|
Gets a Vector3 with the Z set to 1, and the others set to 0. |
|
Gets a Vector3 with all components set to 0. |