open class FloatPointList
FloatPointList(initialCapacity: Int) FloatPointList(points: FloatArray!)
Constructs an empty list with the specified initial capacity. FloatPointList()
Constructs an empty list with an initial capacity of ten. |
var modCount: Int
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. |
open fun add(e: Float): Boolean
Appends the specified element to the end of this list. open fun add(index: Int, element: Float): Unit
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). |
|
open fun addAll(a: FloatArray!): 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.) open fun addAll(index: Int, a: FloatArray!): 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. |
|
open fun addPoint(point: FloatArray!): Boolean open fun addPoint(x: Float, y: Float): Boolean
Appends the specified element to the end of this list. open fun addPoint(pointIndex: Int, point: FloatArray!): Unit open fun addPoint(pointIndex: Int, x: Float, y: Float): Unit
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). |
|
open fun clear(): Unit
Removes all of the elements from this list. The list will be empty after this call returns. |
|
open fun createArray(): FloatArray! |
|
open fun ensureCapacity(minCapacity: Int): Unit
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. |
|
open fun equals(other: Any?): Boolean
Compares the specified object with this list for equality. Returns |
|
open fun get(index: Int): Float
Returns the element at the specified position in this list. |
|
open fun getPoint(pointIndex: Int): FloatArray! open fun getPoint(pointIndex: Int, dst: FloatArray!): FloatArray!
Returns the element at the specified position in this list. |
|
open fun hashCode(): Int
Returns the hash code value for this list. |
|
open fun isEmpty(): Boolean
Returns true if this list contains no elements. |
|
open fun mapPoints(matrix: Matrix!): FloatPointList! |
|
open fun pointCount(): Int
Returns the number of points in this list. |
|
open fun rawArray(): FloatArray! |
|
open 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). open fun remove(o: Any!): 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). |
|
open fun removePoint(pointIndex: Int): Unit
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). |
|
open fun removeRange(fromIndex: Int, toIndex: Int): Unit
Removes from this list all of the elements whose index is between |
|
open fun set(index: Int, element: Float): Float open fun set(pointIndex: Int, point: FloatArray!): Unit
Replaces the element at the specified position in this list with the specified element. |
|
open fun size(): Int
Returns the number of elements in this list. |
|
open fun trimToSize(): Unit
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. |