FloatExt.ToEuler180 Method

Given a value in degrees, returns the same angle making sure it’s in range [-180, 180]. For example, an input of -380.3 would return -20.3.

Namespace: UltimateXR.Extensions.System.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static float ToEuler180(
	this float self
)

Parameters

 

self
Type: System.Single
Value to process

Return Value

Type: Single
Degrees in range between [-180, 180]

Usage Note

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

Reference

FloatExt Class
UltimateXR.Extensions.System.Math Namespace