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

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

package dev.robocode.tankroyale.server.model

/**
 * Defines an immutable 2D point.
 * @param x x coordinate.
 * @param y y coordinate.
 */
data class Point(override val x: Double, override val y: Double) : IPoint {
    /**
     * Returns a mutable copy of this point
     *
     * @return a MutablePoint that is a copy of this point.
     */
    fun toMutablePoint() = MutablePoint(x, y)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy