MathUtils.ToDegree

ToDegree(Vector3)

Convert a Vector3 from radian to degree.

public static Vector3 ToDegree(Vector3 radian)
ParameterTypeDescription
radianVector3The radian value.

Return Value

The degree value.

Examples

Vector3 degrees = MathUtils.ToDegree(new Vector3(0.34, 0.9, 0.2));
Console.WriteLine($"Degrees = {degrees}");

See Also


ToDegree(float)

Convert a number from radian to degree

public static float ToDegree(float radian)
ParameterTypeDescription
radianSingleThe radian value.

Return Value

The degree value.

Examples

var deg = MathUtils.ToDegree(0.3f);
Console.WriteLine($"Degree = {deg}");

See Also


ToDegree(double)

Convert a number from radian to degree

public static double ToDegree(double radian)
ParameterTypeDescription
radianDoubleThe radian value.

Return Value

The degree value.

Examples

var deg = MathUtils.ToDegree(0.3);
Console.WriteLine($"Degree = {deg}");

See Also


ToDegree(double, double, double)

Convert a number from radian to degree

public static Vector3 ToDegree(double x, double y, double z)
ParameterTypeDescription
xDoubleThe x component in radian value.
yDoubleThe y component in radian value.
zDoubleThe z component in radian value.

Return Value

The degree value.

See Also