Package-level declarations

Types

Link copied to clipboard
object AngleSerializer : KSerializer<Angle>
Link copied to clipboard
@Serializable
data class LinePiece @JvmOverloads constructor(var end: Vector2d, var heading: HeadingInterpolation = TangentHeading) : TrajectoryPiece, MovableTrajectoryPiece
Link copied to clipboard
Link copied to clipboard
@Serializable
data class SerializableTrajectory(var start: StartPiece, val pieces: MutableList<TrajectoryPiece>)
Link copied to clipboard
@Serializable
data class SplinePiece @JvmOverloads constructor(var end: Vector2d, var tangent: Angle, var startTangentMag: Double = -1.0, var endTangentMag: Double = -1.0, var heading: HeadingInterpolation = TangentHeading) : TrajectoryPiece, MovableTrajectoryPiece
Link copied to clipboard
@Serializable
data class StartPiece @JvmOverloads constructor(var pose: Pose2d, var tangent: Angle = pose.heading)
Link copied to clipboard
@Serializable
interface TrajectoryPiece
Link copied to clipboard
@Serializable
data class TurnPiece(var angle: Angle) : TrajectoryPiece
Link copied to clipboard
@Serializable
data class WaitPiece(var duration: Double) : TrajectoryPiece

Functions

Link copied to clipboard
fun Double.format(decimals: Int = -1, width: Int = -1): String

Formats a double to the desired number of decimals or characters.