Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MCL;
- public class Position {
- protected double x = 0.0, y = 0.0, theta = 0.0;
- public Position(){
- this.x = 0.0;
- this.y = 0.0;
- this.theta = 0.0;
- }
- public Position(double x, double y, double theta){
- this.x = x;
- this.y = y;
- this.theta = theta;
- }
- public double getTheta() {
- return theta;
- }
- public void setTheta(double theta) {
- this.theta = theta;
- }
- public double getX() {
- return x;
- }
- public void setX(double x) {
- this.x = x;
- }
- public double getY() {
- return y;
- }
- public void setY(double y) {
- this.y = y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement