Click or drag to resize
VectorExtensionsToVector2I Method
Converts a 3D vector to a 2D vector by removing the Z coordinate.

Namespace: Slash.Math.Algebra.Vectors
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static Vector2I ToVector2I(
	this Vector3I vector
)

Parameters

vector
Type: Slash.Math.Algebra.VectorsVector3I
3D vector to convert.

Return Value

Type: Vector2I
2D 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