Vector3 Structure |
Defines a three component vector.
A default constructed one is Zero.
Namespace: Microsoft.DirectX
[SerializableAttribute] public struct Vector3 : IEquatable<Vector3>
The Vector3 type exposes the following members.
| Name | Description | |
|---|---|---|
| Vector3(Vector3) |
Initializes a new instance of the Vector3 struct.
| |
| Vector3(Double, Double, Double) |
Initializes a new instance of the Vector3 struct.
| |
| Vector3(Single, Single, Single) |
Initializes a new instance of the Vector3 struct.
|
| Name | Description | |
|---|---|---|
| Normalized | Vector3 normalization - make its length be 1
| |
| X |
Gets or sets the X component of the Vector3 as a Single.
| |
| XD |
Gets or sets the X component of the Vector3 as a Double.
| |
| Y |
Gets or sets the Y component of the Vector3 as a Single.
| |
| YD |
Gets or sets the Y component of the Vector3 as a Double.
| |
| Z |
Gets or sets the Z component of the Vector3 as a Single.
| |
| ZD |
Gets or sets the Z component of the Vector3 as a Double.
|
| Name | Description | |
|---|---|---|
| Add(Vector3) | Vector3 addition
| |
| Add(Vector3, Vector3) | Vector3 addition
| |
| Cross(Vector3) |
Cross product of two Vector3s
| |
| Cross(Vector3, Vector3) |
Cross product of two Vector3s
| |
| Dot(Vector3) |
Dot product of two Vector3s
| |
| Dot(Vector3, Vector3) |
Dot product of two Vector3s
| |
| DotD(Vector3) |
Dot product of two Vector3s
| |
| DotD(Vector3, Vector3) |
Dot product of two Vector3s
| |
| Equals(Object) | Vector3 exact equality - see EQ(Vector3, Vector3) for alternative
(Overrides ValueTypeEquals(Object).) | |
| Equals(Vector3) | Vector3 exact equality - see EQ(Vector3, Vector3) for alternative
| |
| GetHashCode |
Returns the hash code for the current Vector3.
(Overrides ValueTypeGetHashCode.) | |
| Length |
Length of Vector3 | |
| Length(Vector3) |
Length of Vector3 | |
| LengthD |
Length of Vector3 | |
| LengthD(Vector3) |
Length of Vector3 | |
| LengthSq |
Length squared of Vector3 | |
| LengthSq(Vector3) |
Length squared of Vector3 | |
| LengthSqD |
Length squared of Vector3 | |
| LengthSqD(Vector3) |
Length squared of Vector3 | |
| Lerp(Vector3, Double) |
Linear interpolation between this Vector3 and another Vector3 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(Vector3, Vector3, Double) |
Linear interpolation between two Vector3s
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(Vector3, Vector3, Single) |
Linear interpolation between two Vector3s
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(Vector3) | Vector3 maximization - combination of the largest components
| |
| Maximize(Vector3, Vector3) | Vector3 maximization - combination of the largest components
| |
| Minimize(Vector3) | Vector3 minimization - combination of the smallest components
| |
| Minimize(Vector3, Vector3) | Vector3 minimization - combination of the smallest components
| |
| Multiply(Double) |
Scale the X, Y and Z components of Vector3 | |
| Multiply(Single) |
Scale the X, Y and Z components of Vector3 | |
| Multiply(Vector3) |
Scale the X, Y, and Z components of Vector3.
| |
| Multiply(Vector3, Vector3) |
Scale the X, Y, and Z components of Vector3 .
| |
| Multiply(Vector3, Double) |
Scale the X, Y and Z components of Vector3 | |
| Multiply(Vector3, Single) |
Scale the X, Y and Z components of Vector3 | |
| MultiplyAdd |
Combined multiplication and addition
| |
| Negate | Vector3 in-place negation.
| |
| Normalize | Vector3 normalization - make its length be 1
| |
| Normalize(Vector3) | Vector3 normalization - make its length be 1
| |
| ScalarTriple(Vector3, Vector3) |
Scalar triple product of three Vector3s
| |
| ScalarTriple(Vector3, Vector3, Vector3) |
Scalar triple product of three Vector3s
| |
| Scale(Double) |
Scale the X, Y, and Z components of Vector3 | |
| Scale(Single) |
Scale the X, Y, and Z components of Vector3 | |
| Scale(Vector3) |
Scale the X, Y, and Z components of Vector3.
| |
| Scale(Vector3, Vector3) |
Scale the X, Y, and Z components of Vector3 .
| |
| Scale(Vector3, Double) |
Scale the X, Y, and Z components of Vector3 | |
| Scale(Vector3, Single) |
Scale the X, Y, and Z components of Vector3 | |
| Subtract(Vector3) | Vector3 subtraction
| |
| Subtract(Vector3, Vector3) | Vector3 subtraction
| |
| ToString |
Returns a string that represents the current Vector3.
(Overrides ValueTypeToString.) | |
| Transform |
Transforms a Vector3 by the given Matrix | |
| TransformCoordinate(Matrix) |
Transform this Vector3 coordinate by Matrix | |
| TransformCoordinate(Vector3, Matrix) |
Transform Vector3 coordinate by Matrix | |
| TransformNormal(Matrix) |
Transform this Vector3 normal by Matrix | |
| TransformNormal(Quaternion) |
Transform this Vector3 normal by Quaternion | |
| TransformNormal(Vector3, Matrix) |
Transform Vector3 normal by Matrix | |
| TransformNormal(Vector3, Quaternion) |
Transform Vector3 normal by Quaternion | |
| VectorTriple(Vector3, Vector3) |
Vector triple product of three Vector3s
| |
| VectorTriple(Vector3, Vector3, Vector3) |
Vector triple product of three Vector3s
|
| Name | Description | |
|---|---|---|
| Addition | Vector3 addition
| |
| Equality | Vector3 exact equality - see EQ(Vector3, Vector3) for alternative
| |
| Inequality | Vector3 exact inequality - see EQ(Vector3, Vector3) for alternative
| |
| Multiply(Double, Vector3) |
Scale the X, Y and Z components of Vector3 | |
| Multiply(Single, Vector3) |
Scale the X, Y and Z components of Vector3 | |
| Multiply(Vector3, Double) |
Scale the X, Y and Z components of Vector3 | |
| Multiply(Vector3, Single) |
Scale the X, Y and Z components of Vector3 | |
| Subtraction | Vector3 subtraction
| |
| UnaryNegation | Vector3 unary negation
|
| Name | Description | |
|---|---|---|
| Empty |
A Vector3 with all of its components set to zero.
| |
| MaxValue |
A Vector3 with the maximum value
| |
| MinValue |
A Vector3 with the minimum value
| |
| One |
A Vector3 with all of its components set to one.
| |
| Origin |
A Vector3 with all of its components set to zero.
| |
| XAxis |
A Vector3 representing the unit X-Axis
| |
| YAxis |
A Vector3 representing the unit Y-Axis
| |
| ZAxis |
A Vector3 representing the unit Z-Axis
| |
| Zero |
A Vector3 with all of its components set to zero.
|