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

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

package dev.robocode.tankroyale.server.model

/** Defines a 2D line. */
data class Line(
    /** Start of the line */
    val start: Point,

    /** End of the line */
    val end: Point
) {
    constructor(x1: Double, y1: Double, x2: Double, y2: Double) : this(Point(x1, y1), Point(x2, y2))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy