mirror

open fun mirror(pose: Pose2d): Pose2d

Mirror a global pose across the alliance plane. This negates the heading and y components.

Return

the mirrored pose

Parameters

pose

the pose to mirror


open fun mirror(vector: Vector2d): Vector2d

Mirror a global vector across the alliance plane. This negates the y component.

Return

the mirrored vector

Parameters

vector

the vector to mirror