MovingBlocks
Add a unit test for Vector Projection
As well as the main games Terasology and Destination Sol we have some libraries that we use in the projects. One of these is the [TeraMath library] (https://github.com/MovingBlocks/TeraMath). This is a maths library that contains a number of functions. One of these is to do Vector Projections. This is currently untested so your task is to write some tests for it.
The test should create two or three arbitrary vectors and show that U is projected onto V. Also, remember to test edge cases such as when the vectors are perpendicular (And thus the projection will be zero)
Be aware that .st files are intermediary files that will be used to generate the relevant java code.
Definition of 'Done'
- A pull request made to the [TeraMath repo] (https://github.com/MovingBlocks/TeraMath) that contains tests for the relevant code here.
Where to start
- Have a look at the existing TeraMath tests.
- Guide on how to write unit tests
Task tags
Students who completed this task
eviltak