Use data objects for trajectory directions

This commit is contained in:
Alexander Nozik 2024-07-21 18:40:17 +03:00
parent df800f05f0
commit 29a0fb743c

View File

@ -35,17 +35,11 @@ public sealed interface Trajectory2D {
public sealed interface Direction : Type public sealed interface Direction : Type
public object R : Direction { public data object R : Direction
override fun toString(): String = "R"
}
public object S : Type { public data object S : Type
override fun toString(): String = "S"
}
public object L : Direction { public data object L : Direction
override fun toString(): String = "L"
}
} }