jawaff / KinectController

Control your computer using your body. The KinectController turns the Kinect into a controller that allows configurable actions to be emulated when configurable gestures are triggered by the user.
0 stars 0 forks source link

Unit Test: com.wafflesoft.kinectcontroller.Formulas #40

Open jawaff opened 8 years ago

jawaff commented 8 years ago

Some tests need to be made that will make sure that the functions supplied in the Formulas class are giving the expected results.

Note: Some of the data types used in this class come from OpenNI and Nite. Look into the documentation websites generated for those libraries in order to get more information on them.

jawaff commented 8 years ago

The tests needed for this class should be pretty straight forward. I'd essentially just give each of the functions some hard-coded values and then make sure that the value returned is what you'd expect it to be -- do the math by hand to figure out the expected value. The functions pretty much just utilize distance formulas and the law of cosines from what I recall.