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]
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]