Matrix4x4.CreateFromAxisAngle(Vector3, Single) 方法
定义
创建围绕任意向量旋转的矩阵。Creates a matrix that rotates around an arbitrary vector.
public:
static System::Numerics::Matrix4x4 CreateFromAxisAngle(System::Numerics::Vector3 axis, float angle);
public static System.Numerics.Matrix4x4 CreateFromAxisAngle (System.Numerics.Vector3 axis, float angle);
static member CreateFromAxisAngle : System.Numerics.Vector3 * single -> System.Numerics.Matrix4x4
Public Shared Function CreateFromAxisAngle (axis As Vector3, angle As Single) As Matrix4x4
参数
- axis
- Vector3
要围绕其旋转的轴。The axis to rotate around.
- angle
- Single
要围绕 axis 旋转的角度(以弧度表示)。The angle to rotate around axis, in radians.
返回
旋转矩阵。The rotation matrix.