1, To optimize the comparing of the length of vector:
SimpleVector.length()^2; SimpleVector.distance()^2
2, For animation、camera moving 、physic simulation and so on:
Interpolation - linear、sin、pow、slerp and so on.
3, For animation、rotation Interpolation:
Quaternion