Removed a few local math and geometry functions.
Used the definitions provided in MathHelper and Vector3 instead.