to_degree method
Contents
[
Hide
]to_degree
Convert a Vector3
from radian to degree.
Returns
The degree value.
def to_degree(self, radian):
...
Parameter | Type | Description |
---|---|---|
radian | Vector3 | The radian value. |
Example
from aspose.threed.utilities import MathUtils, Vector3
degrees = MathUtils.to_degree(Vector3(0.34, 0.9, 0.2))
print(f"Degrees = {degrees}")
to_degree
Convert a number from radian to degree
Returns
The degree value.
def to_degree(self, radian):
...
Parameter | Type | Description |
---|---|---|
radian | float | The radian value. |
Example
from aspose.threed.utilities import MathUtils
deg = MathUtils.to_degree(0.3)
print(f"Degree = {deg}")
to_degree
Convert a number from radian to degree
Returns
The degree value.
def to_degree(self, radian):
...
Parameter | Type | Description |
---|---|---|
radian | float | The radian value. |
Example
from aspose.threed.utilities import MathUtils
deg = MathUtils.to_degree(0.3)
print(f"Degree = {deg}")
to_degree
Convert a number from radian to degree
Returns
The degree value.
def to_degree(self, x, y, z):
...
Parameter | Type | Description |
---|---|---|
x | float | The x component in radian value. |
y | float | The y component in radian value. |
z | float | The z component in radian value. |
See Also
- module
aspose.threed.utilities
- class
MathUtils
- class
Vector3