Files
FTC-Project-Gen/windows/templates/Pose2d.java
2026-01-24 12:39:32 -06:00

27 lines
559 B
Java

package robot;
/**
* Simple 2D pose representation (x, y, heading).
* Pure data class - no dependencies.
*/
public class Pose2d {
public final double x;
public final double y;
public final double heading;
public Pose2d(double x, double y, double heading) {
this.x = x;
this.y = y;
this.heading = heading;
}
public Pose2d() {
this(0, 0, 0);
}
@Override
public String toString() {
return String.format("Pose2d(x=%.2f, y=%.2f, heading=%.2f)", x, y, heading);
}
}