Point2

@Serializable(with = Point2Serializer::class)
class Point2<out N>(coordinates: ColumnVector<N>) : Point<N> (source)

Constructors

Link copied to clipboard
constructor(coordinates: ColumnVector<N>)

Properties

Link copied to clipboard
Link copied to clipboard
val x: N
Link copied to clipboard
val y: N

Functions

Link copied to clipboard
inline fun <E> Point<E>.all(block: (value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.allIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.any(block: (value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.anyIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E, R> Point<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
Link copied to clipboard
inline fun <E> Point<E>.forEach(block: (value: E) -> Unit)
Link copied to clipboard
inline fun <E> Point<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>
Link copied to clipboard
inline fun <E, R> Point<E>.mapIndexed(transform: (index: UInt, E) -> R): Point<R>
Link copied to clipboard
operator fun <N> Point2<N>.minus(other: Point2<N>): Vector2<N>
operator fun <N> Point2<N>.minus(other: Vector2<N>): Point2<N>
operator fun <N> Point<N>.minus(other: Point<N>): Vector<N>
operator fun <N> Point<N>.minus(other: Vector<N>): Point<N>
Link copied to clipboard
inline fun <E> Point<E>.none(block: (value: E) -> Boolean): Boolean
Link copied to clipboard
inline fun <E> Point<E>.noneIndexed(block: (index: UInt, value: E) -> Boolean): Boolean
Link copied to clipboard
operator fun <N> Point2<N>.plus(other: Vector2<N>): Point2<N>
operator fun <N> Point<N>.plus(other: Vector<N>): Point<N>
Link copied to clipboard
fun <E> Point<E>.sum(): E
Link copied to clipboard
inline fun <E, A> Point<E>.sumOf(selector: (E) -> A): A
Link copied to clipboard
inline fun <E, A> Point<E>.sumOfIndexed(selector: (index: UInt, E) -> A): A
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
inline fun <E> Point<E>.withEach(block: E.() -> Unit)
Link copied to clipboard
inline fun <E> Point<E>.withEachIndexed(block: E.(index: UInt) -> Unit)