Yosef Berman's code

Scale Box

Many of my math interactives involve plotting points on the plane. I sometimes use multiple coordinate systems on the same diagram: the html canvas has a coordinate system, the math has a coordinate system, etc. This tiny javascript libary is how I manage all scaling and without using full-blown matrices.