Microsoft DirectX 9.0 SDK Update (October 2004)

Vector4 Structure

Language:

Note: This documentation is preliminary and is subject to change.

Describes a vector in four-dimensional (4-D) space.

Definition

Visual Basic .NET Public Structure Vector4
C# public struct Vector4
Managed C++ public __value struct Vector4
JScript .NET In JScript .NET, you can use structures, but you cannot define your own.

Members Table

Field Description
W Retrieves or sets the w component of a 4-D vector.
X Retrieves or sets the x component of a 4-D vector.
Y Retrieves or sets the y component of a 4-D vector.
Z Retrieves or sets the z component of a 4-D vector.
Method Description
Add Adds two 4-D vectors.
static (Shared in Visual Basic .NET) BaryCentric Returns a point in barycentric coordinates, using the specified 4-D vectors.
static (Shared in Visual Basic .NET) CatmullRom Performs a Catmull-Rom interpolation using specified 4-D vectors.
static (Shared in Visual Basic .NET) Cross Determines the cross product in four dimensions.
static (Shared in Visual Basic .NET) Dot Determines the dot product of two 4-D vectors.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
GetHashCode Returns the hash code for the current instance.
static (Shared in Visual Basic .NET) Hermite Performs a Hermite spline interpolation using the specified 4-D vectors.
Length Returns the length of a 4-D vector.
LengthSq Returns the square of the length of a 4-D vector.
static (Shared in Visual Basic .NET) Lerp Performs a linear interpolation between two 4-D vectors.
Maximize Returns a 4-D vector that is made up of the largest components of two 4-D vectors.
Minimize Returns a 4-D vector that is made up of the smallest components of two 4-D vectors.
Multiply Multiplies a 4-D vector by a Single Leave Site value.
Normalize Returns the normalized version of a 4-D vector.
static (Shared in Visual Basic .NET) op_Addition Adds two vectors.
static (Shared in Visual Basic .NET) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic .NET) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
static (Shared in Visual Basic .NET) op_Multiply Determines the product of a Single Leave Site value and a 4-D vector.
static (Shared in Visual Basic .NET) op_Subtraction Subtracts two 4-D vectors.
static (Shared in Visual Basic .NET) op_UnaryNegation Negates the vector.
Scale Scales a 4-D vector.
Subtract Subtracts two 4-D vectors.
ToString Obtains a string representation of the current instance.
Transform Transforms a 4-D vector or an array of 4-D vectors by a given matrix.
Vector4 Initializes a new instance of the Vector4 class.
Property Description
static (Shared in Visual Basic .NET) Empty Returns an empty 4-D vector.

Structure Information

Namespace Microsoft.DirectX
Assembly Microsoft.DirectX (microsoft.directx.dll)
Strong Name Microsoft.DirectX,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center