MatrixRotate method

  1. @override
Matrix MatrixRotate(
  1. Vector3 axis,
  2. double angle
)
override

Create rotation matrix from axis and angle

NOTE: Angle should be provided in radians

Implementation

@override
Matrix MatrixRotate(
  Vector3 axis,
  double angle,
) => Matrix$.Extract1(
  (p) => _wasm.MatrixRotate(
    p.toJS,
    Vector3$.Ref1(axis).toJS,
    angle.toJS,
  ),
);