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) => _ffi.MatrixRotate(
    $.Vector3$.Ref1(axis).asNativePointer<Vector3C>().ref,
    angle,
  ).toDart(p.asNativePointer()),
);