Format

A / B

Returns

A divided by B.

Divides A and B. The result of the operation depends on the types of values being multiplied, mostly on A.

A typeB typeResult
num or null (0)num or null (0)Numeric division; crashes if B is equivalent to 0
icon or /iconnum or colorNew icon dividing RGB components by color
matrixmatrixNew matrix, product of A and the inverse of B
numNew matrix scaling A by 1/B
vectorNew matrix scaling A by 1/B.x and 1/B.y
pixlocnum or vectorCreates a 2D vector from pixloc’s x,y and divides that by the rules below
vector2D vector dividing x,y components by the divisor’s x,y
vectorvectorNew vector with components divided
matrixNew vector with 2D transformation applied in reverse
numNew vector scaling A by 1/B

See also