ly.img.android.pesdk.utils / FloatPointList / addPoint

addPoint

fun addPoint(@NonNull point: kotlin.Array<float>): boolean

Appends the specified element to the end of this list.

Parameters

point - kotlin.Array<float>: point to be appended to this list

Return
boolean: true

fun addPoint(@NonNull x: float, y: float): boolean

Appends the specified element to the end of this list.

Parameters

x - float: point x coordinate to be appended to this list

y - float: point y coordinate to be appended to this list

Return
boolean: true

fun addPoint(pointIndex: int, point: kotlin.Array<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).

Parameters

pointIndex - int: index at which the specified element is to be inserted

point - kotlin.Array<float>: element to be inserted

Exceptions

IndexOutOfBoundsException -

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).

Parameters

pointIndex - int: index at which the specified element is to be inserted

x - float: point x coordinate to be inserted

y - float: point y coordinate to be inserted

Exceptions

IndexOutOfBoundsException -