Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Describes and manipulates a vector in two-dimensional (2-D) space.
Note: For programming in Microsoft Visual Basic .NET or Microsoft JScript .NET, use the methods of the Microsoft.DirectX.Vector2 structure.
Definition
Visual Basic NotInheritable MustInherit Public Class Vector2
Inherits ObjectC# public abstract sealed class Vector2 : Object C++ public ref class Vector2 abstract sealed : Object JScript public final abstract class Vector2 extends Object
Members Table
The following table lists the members exposed by the object.
Methods
Method Description Add
Adds two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.BaryCentric
Returns a point in barycentric coordinates, using specified 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.CatmullRom
Performs a Catmull-Rom interpolation using specified 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Ccw
Returns the z component by calculating the cross product of two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Dot
Determines the dot product of two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Hermite
Performs a Hermite spline interpolation using specified 2-D vectors. Length
Returns the length of a 2-D vector. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.LengthSq
Returns the square of the length of a 2-D vector. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Lerp
Performs a linear interpolation between two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Maximize
Returns a 2-D vector that is made up of the largest components of two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Minimize
Returns a 2-D vector that is made up of the smallest components of two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Normalize
Returns the normalized version of a 2-D vector. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Scale
Scales a 2-D vector. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Subtract
Subtracts two 2-D vectors. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.Transform
Transforms a 2-D vector or an array of 2-D vectors by a given matrix. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.TransformArray
Transforms an array of 2-D vectors by a given matrix. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.TransformCoordinate
Transforms a 2-D vector or an array of 2-D vectors by a given matrix, projecting the result back into w = 1. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.TransformCoordinateArray
Transforms array (x, y, 0, 1) by a given matrix, and projects the result back into w = 1. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.TransformNormal
Transforms the 2-D vector normal by a given matrix. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.TransformNormalArray
Transforms array (x, y, 0, 0) by a given matrix. Note: For programming in Visual Basic .NET or JScript .NET, use the equivalent method in the Microsoft.DirectX structures.
Inheritance Hierarchy
UnsafeNativeMethods.Vector2
Class Information
Namespace Microsoft.DirectX Assembly Microsoft.DirectX (microsoft.directx.dll) Strong Name Microsoft.DirectX, Version=1.0.900.0, Culture=neutral, PublicKeyToken=d3231b57b74a1492
.gif)