rotate method

void rotate(
  1. double angle, {
  2. Vector3 axis = OUT,
  3. Vector3? aboutPoint,
  4. Vector3 aboutEdge = ORIGIN,
})

Implementation

void rotate(double angle,
    {Vector3 axis = OUT, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) {
  var rotMatrixT = rotationMatrix(angle, axis).T;

  applyOverPoints(
      func: (pt) => pt.matMul(rotMatrixT),
      aboutEdge: aboutEdge,
      aboutPoint: aboutPoint);
}