the math is valid on a unit circle.
the normalising of the vector is missing.