All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.robocode.tankroyale.server.model.MutablePoint.kt Maven / Gradle / Ivy

package dev.robocode.tankroyale.server.model

/** Defines a mutable 2D point */
data class MutablePoint(
    /** x coordinate */
    override var x: Double,
    /** y coordinate */
    override var y: Double
) : IPoint {
    /** Returns an immutable copy of this point */
    fun toPoint() = Point(x, y)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy