Vector |
public struct VectorD3D : IEquatable<VectorD3D>
The VectorD3D type exposes the following members.
| Name | Description | |
|---|---|---|
| Empty | Gets an empty vector (0,0,0). | |
| IsEmpty | Gets a value indicating whether this instance is empty, i.e. all elements are zero. | |
| Length | Gets the length of the vector. | |
| Normalized | Gets the normalized version of this vector (length 1). | |
| SquareOfLength | Gets the squared length of the vector. | |
| X | Gets the x component of this vector. | |
| Y | Gets the y component of this vector. | |
| Z | Gets the z component of this vector. |
| Name | Description | |
|---|---|---|
| AngleBetweenInRadians | Calculates the angle between two vectors in radians. | |
| CreateNormalized(VectorD3D) | Creates a normalized version of the given vector. | |
| CreateNormalized(Double, Double, Double) | Creates a normalized vector from the given x, y, and z components. | |
| CreateScaled | Creates a scaled version of the given vector. | |
| CreateSum | Creates a vector that is the sum of two vectors. | |
| CrossProduct | Calculates the cross product of two vectors. | |
| DotProduct | Calculates the dot product of two vectors. | |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| Equals(VectorD3D) | Indicates whether the current object is equal to another object of the same type. | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MultiplicationElementwise | Multiplies two vectors elementwise. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) | |
| WithX | Returns a new instance with X set to the provided value. | |
| WithY | Returns a new instance with Y set to the provided value. | |
| WithZ | Returns a new instance with Z set to the provided value. |
| Name | Description | |
|---|---|---|
| Addition(VectorD3D, VectorD3D) | Adds two vectors component-wise. | |
| Division(VectorD3D, Double) | Divides a vector by a scalar. | |
| Equality(VectorD3D, VectorD3D) | Checks if two vectors are equal. | |
| (PointD3D to VectorD3D) | Converts a PointD3D to a VectorD3D. | |
| Inequality(VectorD3D, VectorD3D) | Checks if two vectors are not equal. | |
| Multiply(Double, VectorD3D) | Multiplies a scalar by a vector. | |
| Multiply(VectorD3D, Double) | Multiplies a vector by a scalar. | |
| Subtraction(VectorD3D, VectorD3D) | Subtracts two vectors component-wise. | |
| UnaryNegation(VectorD3D) | Negates a vector. |