MatrixRotate method

  1. @override
MatrixD MatrixRotate(
  1. Vector3D axis,
  2. double angle
)
override

Create rotation matrix from axis and angle

NOTE: Angle should be provided in radians

Implementation

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