lucaspevidor / InteractiveCanvas

A training project for interacting with an environment through HTML canvas
GNU General Public License v3.0
1 stars 0 forks source link

Feature/add new functions to vector2d class #16

Closed lucaspevidor closed 1 year ago

lucaspevidor commented 1 year ago

Added overloads for Vector2 Add and Subtract methods. Now it's possible to add and subtract directly from coordinates, without instantiating another Vector2.

Added Vector2.Unit() vector. Added Vector2.Zero() vector.

Closes #15.