/** * Adds a light to the list. List size is doubled if there is no room. * * @param l * The light to add. */ public void add(Light l) { if (listSize == list.length) { doubleSize(); } list[listSize] = l; distToOwner[listSize++] = Float.NEGATIVE_INFINITY; }
doubleSize(); int sz = local.listSize + parent.listSize; while (list.length <= sz) doubleSize();
/** * Adds a light to the list. List size is doubled if there is no room. * * @param l * The light to add. */ public void add(Light l) { if (listSize == list.length) { doubleSize(); } list[listSize] = l; distToOwner[listSize++] = Float.NEGATIVE_INFINITY; }
/** * Adds a light to the list. List size is doubled if there is no room. * * @param l * The light to add. */ public void add(Light l) { if (listSize == list.length) { doubleSize(); } list[listSize] = l; distToOwner[listSize++] = Float.NEGATIVE_INFINITY; }
doubleSize(); int sz = local.listSize + parent.listSize; while (list.length <= sz) doubleSize();
doubleSize(); int sz = local.listSize + parent.listSize; while (list.length <= sz) doubleSize();