[libgdx] Fixed javadocs, binary -> linear search.

This commit is contained in:
Nathan Sweet 2020-10-26 15:47:18 -07:00
parent 6dc94271f2
commit f42f4bc3b3

View File

@ -131,7 +131,7 @@ public class Animation {
return name;
}
/** Binary search using a stride of 1.
/** Linear search using a stride of 1.
* @param time Must be >= the first value in <code>frames</code>.
* @return The index of the first value <= <code>time</code>. */
static int search (float[] frames, float time) {
@ -141,7 +141,7 @@ public class Animation {
return n - 1;
}
/** Binary search using the specified stride.
/** Linear search using the specified stride.
* @param time Must be >= the first value in <code>frames</code>.
* @return The index of the first value <= <code>time</code>. */
static int search (float[] frames, float time, int step) {