Note when trying to divide by zero the methods will actually throw a DivisionByZeroError exception. In this page we just set the result to a zero vector
instead.
v1.divide(v2)v1v2v1.divide(v2)v1.divideX(v2v1v2v1.divideX(v2)v1.divideY(v2)v1v2v1.divideY(v2)v1.divideScalar(v2)v1v1.divideScalar(2)v1.divideScalarX(v2v1v1.divideScalarX(2)v1.divideScalarY(v2)v1v1.divideScalarY(2)