import Canvas from './Canvas.js'; import { Mat3, Vec3, Point, Shape } from './Geometry.js'; const yAxis = new Vec3(0, 1, 0); const zAxis = new Vec3(0, 0, 1); function radians(degrees) { return degrees * (Math.PI/180); } function Circle(p0, axis, subdiv) { const rotationMatrix = new Mat3().rotation(axis, 2*Math.PI/(subdiv-1)); const points = [p0]; for (let i=0; i