Skip to content

Instantly share code, notes, and snippets.

@island205
Created January 29, 2012 03:27
Show Gist options
  • Save island205/1696991 to your computer and use it in GitHub Desktop.
Save island205/1696991 to your computer and use it in GitHub Desktop.
class Vector2
x: 0
y: 0
constructor:() ->
constructor:(@x, @y) ->
constructor:(vector) ->
x = vector.x
y = vector.y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment