Vector4 Structure |
Defines a four component vector.
A default constructed one is Zero.
Namespace: Microsoft.DirectX
[SerializableAttribute] public struct Vector4 : IEquatable<Vector4>
The Vector4 type exposes the following members.
| Name | Description | |
|---|---|---|
| Vector4(Vector3) |
Initializes a new instance of the Vector4 struct.
| |
| Vector4(Vector4) |
Initializes a new instance of the Vector4 class.
| |
| Vector4(Vector3, Double) |
Initializes a new instance of the Vector4 struct.
| |
| Vector4(Double, Double, Double, Double) |
Initializes a new instance of the Vector4 struct.
| |
| Vector4(Single, Single, Single, Single) |
Initializes a new instance of the Vector4 struct.
|
| Name | Description | |
|---|---|---|
| Normalized | Vector4 normalization - make its length be 1
| |
| W |
Gets or sets the W component of the Vector4 as a Single.
| |
| WD |
Gets or sets the W component of the Vector4 as a Double.
| |
| X |
Gets or sets the X component of the Vector4 as a Single.
| |
| XD |
Gets or sets the X component of the Vector4 as a Double.
| |
| Y |
Gets or sets the Y component of the Vector4 as a Single.
| |
| YD |
Gets or sets the Y component of the Vector4 as a Double.
| |
| Z |
Gets or sets the Z component of the Vector4 as a Single.
| |
| ZD |
Gets or sets the Z component of the Vector4 as a Double.
|
| Name | Description | |
|---|---|---|
| Add(Vector4) | Vector4 addition
| |
| Add(Vector4, Vector4) | Vector4 addition
| |
| Dot(Vector4) |
Dot product of two Vector4s
| |
| Dot(Vector4, Vector4) |
Dot product of two Vector4s
| |
| DotD(Vector4) |
Dot product of two Vector4s
| |
| DotD(Vector4, Vector4) |
Dot product of two Vector4s
| |
| Equals(Object) | Vector4 exact equality - see EQ(Vector4, Vector4) for alternative
(Overrides ValueTypeEquals(Object).) | |
| Equals(Vector4) | Vector4 exact equality - see EQ(Vector4, Vector4) for alternative
| |
| GetHashCode |
Returns the hash code for the current Vector4.
(Overrides ValueTypeGetHashCode.) | |
| Length |
Length of Vector4 | |
| Length(Vector4) |
Length of Vector4 | |
| LengthD |
Length of Vector4 | |
| LengthD(Vector4) |
Length of Vector4 | |
| LengthSq |
Length squared of Vector4 | |
| LengthSq(Vector4) |
Length squared of Vector4 | |
| LengthSqD |
Length squared of Vector4 | |
| LengthSqD(Vector4) |
Length squared of Vector4 | |
| Lerp(Vector4, Double) |
Linear interpolation between this Vector4 and another Vector4 This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns this. When t = 1 returns b. When t = 0.5 returns the point midway between this and b. | |
| Lerp(Vector4, Vector4, Double) |
Linear interpolation between two Vector4s
This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns the point midway between a and b. | |
| Lerp(Vector4, Vector4, Single) |
Linear interpolation between two Vector4s
This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns the point midway between a and b. | |
| Maximize(Vector4) | Vector4 maximization - combination of the largest components
| |
| Maximize(Vector4, Vector4) | Vector4 maximization - combination of the largest components
| |
| Minimize(Vector4) | Vector4 minimization - combination of the smallest components
| |
| Minimize(Vector4, Vector4) | Vector4 minimization - combination of the smallest components
| |
| Multiply(Double) |
Scale the X, Y, Z and W components of Vector4 | |
| Multiply(Single) |
Scale the X, Y, Z and W components of Vector4 | |
| Multiply(Vector4) |
Scale the X, Y, Z and W components of Vector4.
| |
| Multiply(Vector4, Vector4) |
Scale the X, Y, and Z components of Vector4 .
| |
| Multiply(Vector4, Double) |
Scale the X, Y, Z and W components of Vector4 | |
| Multiply(Vector4, Single) |
Scale the X, Y, Z and W components of Vector4 | |
| MultiplyAdd |
Combined multiplication and addition
| |
| Negate | Vector4 in-place negation.
| |
| Normalize | Vector4 normalization - make its length be 1
| |
| Normalize(Vector4) | Vector4 normalization - make its length be 1
| |
| Scale(Double) |
Scale the X, Y, Z and W components of Vector4 | |
| Scale(Single) |
Scale the X, Y, Z and W components of Vector4 | |
| Scale(Vector4) |
Scale the X, Y, Z and W components of Vector4.
| |
| Scale(Vector4, Vector4) |
Scale the X, Y, Z and W components of Vector4 .
| |
| Scale(Vector4, Double) |
Scale the X, Y, Z and W components of Vector4 | |
| Scale(Vector4, Single) |
Scale the X, Y, Z and W components of Vector4 | |
| Subtract(Vector4) | Vector4 subtraction
| |
| Subtract(Vector4, Vector4) | Vector4 subtraction
| |
| ToString |
Returns a string that represents the current Vector4.
(Overrides ValueTypeToString.) | |
| Transform |
Transforms a Vector4 by the given Matrix |
| Name | Description | |
|---|---|---|
| Addition | Vector4 addition
| |
| Equality | Vector4 exact equality - see EQ(Vector4, Vector4) for alternative
| |
| Inequality | Vector4 exact inequality - see EQ(Vector4, Vector4) for alternative
| |
| Multiply(Double, Vector4) |
Scale the X, Y, Z and W components of Vector4 | |
| Multiply(Single, Vector4) |
Scale the X, Y, Z and W components of Vector4 | |
| Multiply(Vector4, Double) |
Scale the X, Y, Z and W components of Vector4 | |
| Multiply(Vector4, Single) |
Scale the X, Y, Z and W components of Vector4 | |
| Subtraction | Vector4 subtraction
| |
| UnaryNegation | Vector4 unary negation
|
| Name | Description | |
|---|---|---|
| Empty |
A Vector4 with all of its components set to zero.
| |
| MaxValue |
A Vector4 with the maximum value
| |
| MinValue |
A Vector4 with the minimum value
| |
| One |
A Vector4 with all of its components set to one.
| |
| Origin |
A Vector4 with all of its components set to zero.
| |
| WAxis |
A Vector4 representing the unit W-Axis
| |
| XAxis |
A Vector4 representing the unit X-Axis
| |
| YAxis |
A Vector4 representing the unit Y-Axis
| |
| ZAxis |
A Vector4 representing the unit Z-Axis
| |
| Zero |
A Vector4 with all of its components set to zero.
|