Point2D

data class Point2D(val x: Double, val y: Double)

A 2D point in screen space (after isometric projection).

Provides arithmetic operators for common screen-space math such as midpoint computation, offset calculations, and distance checks.

Constructors

Link copied to clipboard
constructor(x: Double, y: Double)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun div(scalar: Double): Point2D
Link copied to clipboard
operator fun minus(other: Point2D): Point2D
Link copied to clipboard
operator fun plus(other: Point2D): Point2D
Link copied to clipboard
operator fun times(scalar: Double): Point2D
Link copied to clipboard
operator fun unaryMinus(): Point2D