Skip to content

Instantly share code, notes, and snippets.

View lanekatris's full-sized avatar

Lane Katris lanekatris

View GitHub Profile
@lanekatris
lanekatris / SimpleZoomPan.js
Created January 8, 2013 15:08 — forked from afreeland/SimpleZoomPan.js
Simple Pan Zoom for canvas
{
/**
* [roundedRect description]
* @param {Canvas Context} ctx Canvas Context
* @param {int} x X Coordinate
* @param {int} y Y Coordinate
* @param {int} width Width of rectangle
* @param {int} height Height of rectangle
* @param {radius} radius Radius of rectangle corners
@lanekatris
lanekatris / gist:4484480
Last active December 10, 2015 19:58 — forked from afreeland/gist:4484102
Get angle by two vectors on a coordinate plan
/**
* Defines an x,y coordinate
* @param {float} x coordinate
* @param {float} y coordinate
*/
function Point (x, y) {
this.x = x;
this.y = y;
}