Advertisement
Guest User

Henrik Klaus Martin

a guest
Jan 16th, 2009
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package MCL;
  2.  
  3. public class Position {
  4.     protected double x = 0.0, y = 0.0, theta = 0.0;
  5.    
  6.     public Position(){
  7.         this.x = 0.0;
  8.         this.y = 0.0;
  9.         this.theta = 0.0;
  10.     }
  11.    
  12.     public Position(double x, double y, double theta){
  13.         this.x = x;
  14.         this.y = y;
  15.         this.theta = theta;
  16.     }
  17.  
  18.     public double getTheta() {
  19.         return theta;
  20.     }
  21.  
  22.     public void setTheta(double theta) {
  23.         this.theta = theta;
  24.     }
  25.  
  26.     public double getX() {
  27.         return x;
  28.     }
  29.  
  30.     public void setX(double x) {
  31.         this.x = x;
  32.     }
  33.  
  34.     public double getY() {
  35.         return y;
  36.     }
  37.  
  38.     public void setY(double y) {
  39.         this.y = y;
  40.     }
  41.    
  42. }
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement