You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function get_longest_box_index() {
// find the box with the longest axis of them all...
var longest_box_index = 0;
var box_index;
for (box_index = boxes.length - 1; box_index >= 0; box_index -= 1) {
if (boxes[box_index] > longest_box_index) {
longest_box_index = boxes[box_index];
}
}
return longest_box_index;
}
this get_longest_box_index always return 0, because boxes[box_index] > longest_box_index is always false, is it an issue or reasonable
The text was updated successfully, but these errors were encountered:
this
get_longest_box_index
always return 0, becauseboxes[box_index] > longest_box_index
is alwaysfalse
, is it an issue or reasonableThe text was updated successfully, but these errors were encountered: