Click or drag to resize
Vector3XGetNearestCardinalAxis Method
Gets the nearest cardinal axis.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3 GetNearestCardinalAxis(
	this Vector3 testVector
)

Parameters

testVector
Type: Vector3
Test vector.

Return Value

Type: Vector3
The cardinal axis nearest to the specified test vector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector3. 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