to_radian method
Contents
[
Hide
]to_radian
Convert a Vector3
from degree to radian
Returns
The radian value.
def to_radian(self, degree):
...
Parameter | Type | Description |
---|---|---|
degree | Vector3 | The degree value. |
Example
from aspose.threed.utilities import MathUtils, Vector3
radians = MathUtils.to_radian(Vector3(90, 134, 0))
print(f"Radians = {radians}")
to_radian
Convert a number from degree to radian
Returns
The radian value.
def to_radian(self, degree):
...
Parameter | Type | Description |
---|---|---|
degree | float | The degree value. |
Example
from aspose.threed.utilities import MathUtils
rad = MathUtils.to_radian(0.3)
print(f"Radian = {rad}")
to_radian
Convert a number from degree to radian
Returns
The radian value.
def to_radian(self, degree):
...
Parameter | Type | Description |
---|---|---|
degree | float | The degree value. |
Example
from aspose.threed.utilities import MathUtils
rad = MathUtils.to_radian(0.3)
print(f"Radian = {rad}")
to_radian
Convert a vector from degree to radian
Returns
The radian value.
def to_radian(self, x, y, z):
...
Parameter | Type | Description |
---|---|---|
x | float | The x component in degree value. |
y | float | The y component in degree value. |
z | float | The z component in degree value. |
See Also
- module
aspose.threed.utilities
- class
MathUtils
- class
Vector3