Inherits IEquatable< Vector >, and IComparable< Vector >.
|
| | Vector (double value) |
| | Constructs a vector with the specified x, y and z components from a value. More...
|
| |
| | Vector (double x, double y, double z) |
| | Constructs a vector with the specified x, y and z components. More...
|
| |
| | Vector (float value) |
| | Constructs a vector with the specified x, y and z components from a value. More...
|
| |
| | Vector (float x, float y, float z) |
| | Constructs a vector with the specified x, y and z components. More...
|
| |
| int | CompareTo (Vector vector) |
| | Compares the vectors. More...
|
| |
|
override bool | Equals (object obj) |
| | Returns true if the components of the two vectors are exactly equal (unlike operator== which uses epsilon).
|
| |
|
bool | Equals (Vector vector) |
| | Returns true if the components of the two vectors are exactly equal (unlike operator== which uses epsilon).
|
| |
|
override int | GetHashCode () |
| |
|
double | GetLength () |
| | Gets the length of the vector.
|
| |
|
float | GetLengthSqr () |
| | Gets the squared length of the vector.
|
| |
|
Vector | Normalize () |
| | Returns a new unit vector with the same direction.
|
| |
| Tuple< bool, Vector > | Normalize0 () |
| | Tries to create a new unit vector with the same direction. Returns true if the vector is normalized successfully, and false otherwise (f.e. if it has zero length). More...
|
| |
|
Vector | ReplaceX (double newX) |
| |
|
Vector | ReplaceX (float newX) |
| |
|
Vector | ReplaceY (double newY) |
| |
|
Vector | ReplaceY (float newY) |
| |
|
Vector | ReplaceZ (double newZ) |
| |
|
Vector | ReplaceZ (float newZ) |
| |
| Vector | Rotate (Vector axis) |
| | Returns a vector rotated around an axis. More...
|
| |
|
override string | ToString () |
| |
|
| static Vector | FromString (string vector) |
| | Parses a vector string value and returns a vector instance. More...
|
| |
| static double | Mixed (Vector a, Vector b, Vector c) |
| | Returns the mixed product of the three vectors ((a ^ b) * c) More...
|
| |
| static Vector | Multiply (Vector left, Vector right) |
| | Mutiplies the components of the given vectors. Note that this is different from operator*, which does dot product. More...
|
| |
|
static bool | operator!= (Vector v0, Vector v1) |
| |
|
static Vector | operator* (double a, Vector v) |
| | Multiplies all components of the given vector by the given number.
|
| |
|
static Vector | operator* (float a, Vector v) |
| | Multiplies all components of the given vector by the given number.
|
| |
|
static Vector | operator* (int a, Vector v) |
| | Multiplies all components of the given vector by the given number.
|
| |
|
static Vector | operator* (Vector v, double a) |
| | Multiplies all components of the given vector by the given number.
|
| |
|
static Vector | operator* (Vector v, float a) |
| | Multiplies all components of the given vector by the given number.
|
| |
|
static Vector | operator* (Vector v, int a) |
| | Multiplies all components of the given vector by the given number.
|
| |
|
static double | operator* (Vector v0, Vector v1) |
| | Dot product of two vectors.
|
| |
|
static Vector | operator+ (Vector v) |
| | Unary operator +.
|
| |
|
static Vector | operator+ (Vector v, double a) |
| | Sum with a scalar.
|
| |
|
static Vector | operator+ (Vector v, float a) |
| | Sum with a scalar.
|
| |
|
static Vector | operator+ (Vector v, int a) |
| | Sum with a scalar.
|
| |
|
static Vector | operator+ (Vector v0, Vector v1) |
| | Sum of two vectors.
|
| |
|
static Vector | operator- (Vector v) |
| | Unary operator -.
|
| |
|
static Vector | operator- (Vector v, double a) |
| | Subtract a scalar.
|
| |
|
static Vector | operator- (Vector v, float a) |
| | Subtract a scalar.
|
| |
|
static Vector | operator- (Vector v, int a) |
| | Subtract a scalar.
|
| |
|
static Vector | operator- (Vector v0, Vector v1) |
| | Difference of two vectors.
|
| |
|
static Vector | operator/ (Vector v, double a) |
| | Divides all components of the given vector by the given number.
|
| |
|
static Vector | operator/ (Vector v, float a) |
| | Divides all components of the given vector by the given number.
|
| |
|
static Vector | operator/ (Vector v, int a) |
| | Divides all components of the given vector by the given number.
|
| |
|
static Vector | operator/ (Vector v1, Vector v2) |
| | Divides the two vectors component by component.
|
| |
|
static bool | operator== (Vector v0, Vector v1) |
| |
|
static Vector | operator^ (Vector v0, Vector v1) |
| | Cross product of two vectors.
|
| |
A class which represents a vector in 3D space (x, y, z).