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)
v1
v2
v1.divide(v2)
v1.divideX(v2
v1
v2
v1.divideX(v2)
v1.divideY(v2)
v1
v2
v1.divideY(v2)
v1.divideScalar(v2)
v1
v1.divideScalar(2)
v1.divideScalarX(v2
v1
v1.divideScalarX(2)
v1.divideScalarY(v2)
v1
v1.divideScalarY(2)