indexOfFirst

inline fun indexOfFirst(predicate: (Vector2F) -> Boolean): Int

Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.