com.neko233.skilltree.game.spaceMath.Vector2D.kt Maven / Gradle / Ivy
package com.example.kotlinplayground.spaceMath
/**
* 二维向量
*
* @author SolarisNeko on 2023-10-01
*/
data class Vector2D(
val x: Float,
val y: Float,
) {
constructor(
x: Number,
y: Number,
) : this(x.toFloat(), y.toFloat())
}