vector and 3d geometry formulas pdf