spilgames / glue

Glue is a JavaScript game engine for making web games that run on desktop and touch devices.
glue-engine.com
Other
10 stars 4 forks source link

remove static function in vector and matrix #257

Open HernanZh opened 10 years ago

HernanZh commented 10 years ago

Functions like add and multiply should return a new vector and leave the original alone. If you want to add to the current vector, you would need to do something like

vector1 = vector1.add(vector2)