MathUtils.ToRadian
Contents
[
Hide
]ToRadian(Vector3)
Convert a Vector3
from degree to radian
public static Vector3 ToRadian(Vector3 degree)
Parameter | Type | Description |
---|---|---|
degree | Vector3 | The degree value. |
Return Value
The radian value.
Examples
Vector3 radians = MathUtils.ToRadian(new Vector3(90, 134, 0));
Console.WriteLine($"Radians = {radians}");
See Also
- struct Vector3
- class MathUtils
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
ToRadian(float)
Convert a number from degree to radian
public static float ToRadian(float degree)
Parameter | Type | Description |
---|---|---|
degree | Single | The degree value. |
Return Value
The radian value.
Examples
var rad = MathUtils.ToRadian(0.3);
Console.WriteLine($"Radian = {rad}");
See Also
- class MathUtils
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
ToRadian(double)
Convert a number from degree to radian
public static double ToRadian(double degree)
Parameter | Type | Description |
---|---|---|
degree | Double | The degree value. |
Return Value
The radian value.
Examples
var rad = MathUtils.ToRadian(0.3);
Console.WriteLine($"Radian = {rad}");
See Also
- class MathUtils
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
ToRadian(double, double, double)
Convert a vector from degree to radian
public static Vector3 ToRadian(double x, double y, double z)
Parameter | Type | Description |
---|---|---|
x | Double | The x component in degree value. |
y | Double | The y component in degree value. |
z | Double | The z component in degree value. |
Return Value
The radian value.
See Also
- struct Vector3
- class MathUtils
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D