Skip to content

Instantly share code, notes, and snippets.

@rhyolight
Created March 25, 2010 14:58
Show Gist options
  • Save rhyolight/343638 to your computer and use it in GitHub Desktop.
Save rhyolight/343638 to your computer and use it in GitHub Desktop.
function println(s) {
document.write(s + '<br/>');
}
var rect = new Rectangle(2,3);
println(rect);
println(rect.area());
var posRect = new PositionedRectangle(6,3,0,0);
println(posRect);
println(posRect.area());
println(posRect.distanceFrom(new PositionedRectangle(4,4,100,100)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment