Raytracer:getCapacity

Edit

Returns the capacity of the Raytracer, or the number of objects it can hold. The capacity is declared when the raytracer is created, and can not be changed afterwards.

capacity = Raytracer:getCapacity()

Arguments

None

Returns

NameTypeDescription
capacitynumber The capacity of the raytracer.

Notes

Raytracer:add returns nil if the Raytracer is full.

See also