Restructured linux to match Windows
This commit is contained in:
26
windows/templates/Pose2d.java
Normal file
26
windows/templates/Pose2d.java
Normal file
@@ -0,0 +1,26 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user