forked from kscience/kmath
Ordered segments in trajectory
This commit is contained in:
parent
29977650f1
commit
6d47c0ccec
@ -102,7 +102,7 @@ public data class CircleTrajectory2D(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public open class CompositeTrajectory2D(public val segments: Collection<Trajectory2D>) : Trajectory2D {
|
public open class CompositeTrajectory2D(public val segments: List<Trajectory2D>) : Trajectory2D {
|
||||||
override val length: Double get() = segments.sumOf { it.length }
|
override val length: Double get() = segments.sumOf { it.length }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user