Closed DarthSharkie closed 4 months ago
Adding one to an index won't work when the loop uses the foreach
syntax. When trying to iterate through pairs like this, it must use direct indexing.
Also, by reworking this to direct indexing, it is possible to eliminate N allocations of Vector3f
.
The following code is breaking (throws
IndexOutOfBoundsException
: