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

Where to start

Task tags

  • test
  • vectors
  • testing
  • math
  • unit test

Students who completed this task


Task type

  • code Code
  • done_all Quality Assurance