TransformBuilder.RotateDegree

RotateDegree(double, Vector3)

Chain a rotation transform in degree

public TransformBuilder RotateDegree(double angle, Vector3 axis)
ParameterTypeDescription
angleDoubleThe angle to rotate in degree
axisVector3The axis to rotate

Examples

TransformBuilder tb = new TransformBuilder();
tb.RotateDegree(90, Vector3.YAxis);
Console.WriteLine($"Transform Matrix: {tb.Matrix}");

See Also


RotateDegree(Vector3, RotationOrder)

Append rotation with specified order

public void RotateDegree(Vector3 rot, RotationOrder order)
ParameterTypeDescription
rotVector3Rotation in degrees
orderRotationOrder

See Also