Circle Movement
import { circleMovement, Vector2 } from 'mz-math';
const center: Vector2 = [100, 100];
const radiansAngle = Math.PI/2;
const radius = 250;
const newPosition: Vector2 = circleMovement(center, radiansAngle, radius);
Example
Circle movement after mouse
import { circleMovementAfterMouse, Vector2 } from 'mz-math';
const mouse = [evt.clientX, evt.clientY];
const center: Vector2 = [100, 100];
const radius = 250;
const position: Vector2 = circleMovementAfterMouse(mouse, center, radius);
Example