Use data objects for trajectory directions
This commit is contained in:
parent
df800f05f0
commit
29a0fb743c
@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user