codingforeveryone / js

Become familiar with GitHub by solving JavaScript issues
12 stars 2 forks source link

New-member-20 2d Vector Translation on an (in)Finite Plane #93

Open coudrew opened 8 years ago

coudrew commented 8 years ago

Create a function that returns the sum of 2 vectors BUT the returned vector must be within the bounds of a 10*10 area. Results outside the bounds should "wrap around" to stay inside. For example: translate2D([5,7],[2,-1]) //should return [7,6] translate2D([8,9],[3,5]) //should return [1,4]

marisid commented 8 years ago

Hi @coudrew! Can I take this problem? Thx!