PointArrayList

open class PointArrayList(capacity: Int = 7) : PointList, Extra

Constructors

Link copied to clipboard
constructor(capacity: Int = 7)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
open override var closed: Boolean
Link copied to clipboard
open override val dimensions: Int
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
open val first: Point
Link copied to clipboard
open val last: Point
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
fun add(p: PointList, index: Int)
fun add(x: Int, y: Int): PointArrayList
fun add(p: PointList, index: Int, indexEnd: Int)
Link copied to clipboard
Link copied to clipboard
fun addRaw(vararg values: Double)

fun addRaw(vararg values: Float)

Adds points with values in the format of interleaved (x, y) values.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun clone(out: PointArrayList): PointArrayList
Link copied to clipboard
open operator fun contains(p: Point): Boolean
open fun contains(x: Double, y: Double): Boolean
open fun contains(x: Float, y: Float): Boolean
open fun contains(x: Int, y: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun <T> Extra.extraCache(name: String, block: () -> T): T
Link copied to clipboard
inline fun PointList.fastForEach(block: (Point) -> Unit)
Link copied to clipboard
inline fun PointList.fastForEachIndexed(block: (index: Int, Point) -> Unit)
Link copied to clipboard
inline fun PointList.fastForEachReverse(block: (Point) -> Unit)
Link copied to clipboard
inline fun PointList.fastForEachReverseIndexed(block: (index: Int, Point) -> Unit)
Link copied to clipboard
open operator override fun get(index: Int): Point
open operator override fun get(index: Int, dim: Int): Double
Link copied to clipboard
open fun getComponentList(component: Int, out: DoubleArray = DoubleArray(size)): DoubleArray
Link copied to clipboard
fun Extra.getExtra(name: String): Any?
Link copied to clipboard
fun <T> Extra.getExtraTyped(name: String): T?
Link copied to clipboard
Link copied to clipboard
inline fun DoubleVectorList.getOrElse(index: Int, dim: Int, default: Double = 0.0): Double
Link copied to clipboard
Link copied to clipboard
open override fun getX(index: Int): Double
Link copied to clipboard
Link copied to clipboard
open override fun getY(index: Int): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun isAlmostEquals(other: DoubleVectorList, epsilon: Double): Boolean
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isNotEmpty(): Boolean
Link copied to clipboard
fun <T> PointList.map(gen: (x: Double, y: Double) -> T): List<T>
Link copied to clipboard
Link copied to clipboard
fun <T> DoubleVectorList.mapVector(block: (list: DoubleVectorList, index: Int) -> T): List<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator fun plus(other: PointList): PointArrayList
Link copied to clipboard
operator fun plusAssign(other: PointList)
operator fun plusAssign(other: Point)
Link copied to clipboard
fun removeAt(index: Int, count: Int = 1): PointArrayList
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun reverse()
Link copied to clipboard
open fun roundDecimalPlaces(places: Int, out: PointArrayList = PointArrayList()): PointList
Link copied to clipboard
operator fun set(index: Int, p: Point)
Link copied to clipboard
fun Extra.setExtra(name: String, value: Any?)
Link copied to clipboard
fun setX(index: Int, x: Double)
fun setX(index: Int, x: Float)
fun setX(index: Int, x: Int)
Link copied to clipboard
fun setXY(index: Int, p: Point)
fun setXY(index: Int, x: Double, y: Double)
fun setXY(index: Int, x: Float, y: Float)
fun setXY(index: Int, x: Int, y: Int)
Link copied to clipboard
fun setY(index: Int, y: Double)
fun setY(index: Int, y: Float)
fun setY(index: Int, y: Int)
Link copied to clipboard
fun sort()
Link copied to clipboard
fun swap(indexA: Int, indexB: Int)
Link copied to clipboard
open fun toList(): List<Point>
Link copied to clipboard
fun PointList.toPolygon(out: VectorPath = VectorPath()): VectorPath
Link copied to clipboard
fun PointList.toShape2D(closed: Boolean = true): Shape2D
Link copied to clipboard
fun PointList.toShape2d(closed: Boolean = true): Shape2D
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun transform(matrix: Matrix)