to_degree method

to_degree

Convert a Vector3 from radian to degree.

Returns

The degree value.

def to_degree(self, radian):
    ...
ParameterTypeDescription
radianVector3The 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):
    ...
ParameterTypeDescription
radianfloatThe 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):
    ...
ParameterTypeDescription
radianfloatThe 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):
    ...
ParameterTypeDescription
xfloatThe x component in radian value.
yfloatThe y component in radian value.
zfloatThe z component in radian value.

See Also