to_radian method

to_radian

Convert a Vector3 from degree to radian

Returns

The radian value.

def to_radian(self, degree):
    ...
ParameterTypeDescription
degreeVector3The 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):
    ...
ParameterTypeDescription
degreefloatThe 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):
    ...
ParameterTypeDescription
degreefloatThe 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):
    ...
ParameterTypeDescription
xfloatThe x component in degree value.
yfloatThe y component in degree value.
zfloatThe z component in degree value.

See Also