Encapsulation

Part 1

Follow the tutorial in the following video:

Part 2

Then add the remaining static methods to the VectorMath class (Scale, DotProduct, CrossProduct, Magnitude, Normalize) following the structure laid out in this UML class diagram:

The Encapsulation Exercise Class Diagram The Encapsulation Exercise Class Diagram

The vector operations these methods should compute are:

(Vector Addition)a+b=ax+bx,ay+by,az+bz (Vector Subtraction)ab=axbx,ayby,azbz (Vector Scaling)as=axs,ays,azs (Vector Dot Product)ab=axbx+ayby+azbz (Vector Cross Product)a×b=aybzazby,azbxaxbz,axbyaybx (Vector Magnitude)||a||=ax2+ay2+az2 (Vector Normalization)u^=u||u||

You can uncomment the tests in the VectorMathUnitTests class and then run them to verify your work.

Submit A Release

Create a release of your project code on GitHub and submit its URL.