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