TransformBuilder.RotateRadian

RotateRadian(double, Vector3)

Chain a rotation transform in radian

public TransformBuilder RotateRadian(double angle, Vector3 axis)
ParameterTypeDescription
angleDoubleThe angle to rotate in radian
axisVector3The axis to rotate

Examples

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

See Also


RotateRadian(Vector3, RotationOrder)

Append rotation with specified order

public void RotateRadian(Vector3 rot, RotationOrder order)
ParameterTypeDescription
rotVector3Rotation in radian
orderRotationOrder

Examples

TransformBuilder tb = new TransformBuilder();
tb.RotateRadian(new Vector3(0.3, 0.4, 0.1), RotationOrder.YZX);
Console.WriteLine($"Transform Matrix: {tb.Matrix}");

See Also