
commonMain.com.bselzer.gw2.v2.tile.model.position.BoundedPosition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-tile Show documentation
Show all versions of v2-tile Show documentation
Tiling service for Guild Wars 2 map images.
The newest version!
package com.bselzer.gw2.v2.tile.model.position
import com.bselzer.ktx.geometry.dimension.bi.position.Coordinates2D
import com.bselzer.ktx.geometry.dimension.bi.position.Point2D
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmInline
/**
* The absolute position within the bounds of the grid.
*/
@Serializable
@JvmInline
value class BoundedPosition(
private val value: Point2D = Point2D()
) : Coordinates2D {
constructor(x: Double, y: Double) : this(Point2D(x, y))
override val x: Double
get() = value.x
override val y: Double
get() = value.y
override fun toString(): String = value.toString()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy