use assertions rather throwing a new error when the magnitude of vector is zero (see #51)
use assertions rather throwing a new error when the magnitude of vector is zero (see #51)

phetsims/dot,phetsims/dot,phetsims/dot