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