Vector4 Structure Members
In This Topic
The following tables list the members exposed by Vector4.
Public Constructors
Public Fields
| Name | Description |
| One | A Vector4 with all of its components set to one. |
| SizeInBytes | The size of the Vector4 type, in bytes. |
| UnitW | The W unit Vector4 (0, 0, 0, 1). |
| UnitX | The X unit Vector4 (1, 0, 0, 0). |
| UnitY | The Y unit Vector4 (0, 1, 0, 0). |
| UnitZ | The Z unit Vector4 (0, 0, 1, 0). |
| W | The W component of the vector. |
| X | The X component of the vector. |
| Y | The Y component of the vector. |
| Z | The Z component of the vector. |
| Zero | A Vector4 with all of its components set to zero. |
Top
Public Properties
| Name | Description |
| IsNormalized | Gets a value indicting whether this instance is normalized. |
| Item | Gets or sets the component at the specified index. |
| Length | Gets the length of the vector. |
| LengthSquared | Gets the squared length of the vector. |
Top
Public Methods
| Name | Description |
| Abs | Returns a vector whose elements are the absolute values of each of the specified vector's elements. |
| AbsRef | Overloaded. Calculates the absolute value vector. |
| Add | Adds two vectors. |
| AddRef | Adds two vectors. |
| Clamp | Restricts a vector between a minimum and a maximum value. |
| ClampRef | Restricts a vector between a minimum and a maximum value. |
| Divide | Overloaded. Divides the specified vector by a specified scalar value. |
| DivideRef | Overloaded. Divides the specified vector by a specified scalar value. |
| Dot | Calculates the dot product of two vectors. |
| DotRef | Calculates the dot product of two vectors. |
| Equals | Overloaded. Determines whether the specified Vector4 is equal to this instance. |
| EqualsRef | Determines whether the specified Vector4 is equal to this instance. |
| GetHashCode | Returns a hash code for this instance. |
| Lerp | Performs a linear interpolation between two vectors based on the given weighting. |
| LerpRef | Performs a linear interpolation between two vectors based on the given weighting. |
| Max | Returns a vector containing the largest components of the specified vectors. |
| MaxRef | Returns a vector containing the largest components of the specified vectors. |
| Min | Returns a vector containing the smallest components of the specified vectors. |
| MinRef | Returns a vector containing the smallest components of the specified vectors. |
| Multiply | Overloaded. Scales a vector by the given value. |
| MultiplyRef | Overloaded. Scales a vector by the given value. |
| Negate | Reverses the direction of a given vector. |
| NegateRef | Overloaded. Reverses the direction of the vector. |
| Normalize | Converts the vector into a unit vector. |
| NormalizeRef | Overloaded. Converts the vector into a unit vector. |
| Subtract | Subtracts two vectors. |
| SubtractRef | Subtracts two vectors. |
| ToArray | Creates an array containing the elements of the vector. |
| ToString | Overloaded. Returns a System.String that represents this instance. |
Top
Public Operators
See Also