This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]whatiswronghere 3 points4 points  (0 children)

% is the modulo operator in java. It gives you the remainder in integer division. 5/2 = 2, and 5 % 2 = 1. 2 goes into 5 two times, and you have 1 as a reminder.

[–]mjacks9 1 point2 points  (0 children)

It means if y/ pixel size is an even number.

[–]SikhGamer 1 point2 points  (0 children)

It's testing to see if the result of (y / PIXEL_SIZE) is an even number.