Package-level declarations

Functions

Link copied to clipboard
inline fun <E> Point<E>.all(block: (value: E) -> Boolean): Boolean
inline fun <E> Vector<E>.all(block: (value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.allIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
inline fun <E> Vector<E>.allIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.any(block: (value: E) -> Boolean): Boolean
inline fun <E> Vector<E>.any(block: (value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.anyIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
inline fun <E> Vector<E>.anyIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
Link copied to clipboard
infix fun <N> Vector2<N>.cross(other: Vector2<N>): N
Link copied to clipboard
inline fun <E, R> Point<E>.fold(initial: R, operation: (acc: R, E) -> R): R
inline fun <E, R> Vector<E>.fold(initial: R, operation: (acc: R, E) -> R): R
Link copied to clipboard
inline fun <E, R> Point<E>.foldIndexed(initial: R, operation: (index: UInt, acc: R, E) -> R): R
inline fun <E, R> Vector<E>.foldIndexed(initial: R, operation: (index: UInt, acc: R, E) -> R): R
Link copied to clipboard
inline fun <E> Point<E>.forEach(block: (value: E) -> Unit)
inline fun <E> Vector<E>.forEach(block: (value: E) -> Unit)
Link copied to clipboard
inline fun <E> Point<E>.forEachIndexed(block: (index: UInt, value: E) -> Unit)
inline fun <E> Vector<E>.forEachIndexed(block: (index: UInt, value: E) -> Unit)
Link copied to clipboard
fun <N> Point2<N>.inTriangle(P: Point2<N>, Q: Point2<N>, R: Point2<N>): Boolean
Link copied to clipboard
inline fun <E, R> Point<E>.map(transform: (E) -> R): Point<R>
inline fun <E, R> Vector<E>.map(transform: (E) -> R): Vector<R>
Link copied to clipboard
inline fun <E, R> Point<E>.mapIndexed(transform: (index: UInt, E) -> R): Point<R>
inline fun <E, R> Vector<E>.mapIndexed(transform: (index: UInt, E) -> R): Vector<R>
Link copied to clipboard
inline fun <E> Point<E>.none(block: (value: E) -> Boolean): Boolean
inline fun <E> Vector<E>.none(block: (value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.noneIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
inline fun <E> Vector<E>.noneIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
Link copied to clipboard
fun <E> Point<E>.sum(): E
fun <E> Vector<E>.sum(): E
Link copied to clipboard
inline fun <E, A> Point<E>.sumOf(selector: (E) -> A): A
inline fun <E, A> Vector<E>.sumOf(selector: (E) -> A): A
Link copied to clipboard
inline fun <E, A> Point<E>.sumOfIndexed(selector: (index: UInt, E) -> A): A
inline fun <E, A> Vector<E>.sumOfIndexed(selector: (index: UInt, E) -> A): A
Link copied to clipboard
inline fun <E> Point<E>.withEach(block: E.() -> Unit)
inline fun <E> Vector<E>.withEach(block: E.() -> Unit)
Link copied to clipboard
inline fun <E> Point<E>.withEachIndexed(block: E.(index: UInt) -> Unit)
inline fun <E> Vector<E>.withEachIndexed(block: E.(index: UInt) -> Unit)