class FloatPointList
FloatPointList(initialCapacity: int) FloatPointList(points: kotlin.Array<float>)
Constructs an empty list with the specified initial capacity. FloatPointList()
Constructs an empty list with an initial capacity of ten. |
fun add(e: float): boolean
Appends the specified element to the end of this list. fun add(index: int, element: float): void
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
|
fun addAll(a: kotlin.Array<float>): boolean
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.) fun addAll(index: int, a: kotlin.Array<float>): boolean
Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator. |
|
fun addPoint(point: kotlin.Array<float>): boolean fun addPoint(x: float, y: float): boolean
Appends the specified element to the end of this list. fun addPoint(pointIndex: int, point: kotlin.Array<float>): void fun addPoint(pointIndex: int, x: float, y: float): void
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
|
fun clear(): void
Removes all of the elements from this list. The list will be empty after this call returns. |
|
fun createArray(): kotlin.Array<float> |
|
fun ensureCapacity(minCapacity: int): void
Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument. |
|
fun equals(o: java.lang.Object): boolean
Compares the specified object with this list for equality. Returns |
|
fun get(index: int): float
Returns the element at the specified position in this list. |
|
fun getPoint(pointIndex: int): kotlin.Array<float> fun getPoint(pointIndex: int, dst: kotlin.Array<float>): kotlin.Array<float>
Returns the element at the specified position in this list. |
|
fun hashCode(): int
Returns the hash code value for this list. |
|
fun isEmpty(): boolean
Returns true if this list contains no elements. |
|
fun mapPoints(matrix: Matrix): FloatPointList |
|
fun pointCount(): int
Returns the number of points in this list. |
|
fun rawArray(): kotlin.Array<float> |
|
fun remove(index: int): float
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). fun remove(o: java.lang.Object): boolean
Removes the first occurrence of the specified element from this list, if it is present. If the list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that (o==null ? get(i)==null : o.equals(get(i))) (if such an element exists). Returns true if this list contained the specified element (or equivalently, if this list changed as a result of the call). |
|
fun removePoint(pointIndex: int): void
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). |
|
fun removeRange(fromIndex: int, toIndex: int): void
Removes from this list all of the elements whose index is between |
|
fun set(index: int, element: float): float fun set(pointIndex: int, point: kotlin.Array<float>): void
Replaces the element at the specified position in this list with the specified element. |
|
fun size(): int
Returns the number of elements in this list. |
|
fun trimToSize(): void
Trims the capacity of this ArrayList instance to be the list's current size. An application can use this operation to minimize the storage of an ArrayList instance. |
modCount
The number of times this list has been structurally modified. Structural modifications are those that change the size of the list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results. |