 | VectorExtensionsToVector2I Method |
Converts a 3D vector to a 2D vector by removing the Z coordinate.
Namespace: Slash.Math.Algebra.VectorsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static Vector2I ToVector2I(
this Vector3I vector
)
<ExtensionAttribute>
Public Shared Function ToVector2I (
vector As Vector3I
) As Vector2I
public:
[ExtensionAttribute]
static Vector2I ToVector2I(
Vector3I vector
)
[<ExtensionAttribute>]
static member ToVector2I :
vector : Vector3I -> Vector2I
Parameters
- vector
- Type: Slash.Math.Algebra.VectorsVector3I
3D vector to convert.
Return Value
Type:
Vector2I2D vector which consists of the X and Y coordinate of the 3D vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Vector3I. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also