mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[libgdx] Fixed javadocs, binary -> linear search.
This commit is contained in:
parent
6dc94271f2
commit
f42f4bc3b3
@ -131,7 +131,7 @@ public class Animation {
|
|||||||
return name;
|
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>.
|
* @param time Must be >= the first value in <code>frames</code>.
|
||||||
* @return The index of the first value <= <code>time</code>. */
|
* @return The index of the first value <= <code>time</code>. */
|
||||||
static int search (float[] frames, float time) {
|
static int search (float[] frames, float time) {
|
||||||
@ -141,7 +141,7 @@ public class Animation {
|
|||||||
return n - 1;
|
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>.
|
* @param time Must be >= the first value in <code>frames</code>.
|
||||||
* @return The index of the first value <= <code>time</code>. */
|
* @return The index of the first value <= <code>time</code>. */
|
||||||
static int search (float[] frames, float time, int step) {
|
static int search (float[] frames, float time, int step) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user