TransformBuilder.RotateRadian

RotateRadian(double, Vector3)

以弧度进行旋转变换链式操作

public TransformBuilder RotateRadian(double angle, Vector3 axis)
参数类型描述
角度Double以弧度表示的旋转角度
Vector3旋转轴

示例

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

另请参见


RotateRadian(Vector3, RotationOrder)

以指定顺序追加旋转。

public void RotateRadian(Vector3 rot, RotationOrder order)
参数类型描述
rotVector3以弧度表示的旋转
orderRotationOrder

示例

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

另请参见