2030788317b80017145c9b6064c27648 324 B

12345678910111213141516
  1. public class Pose {
  2. public double x, y, z;
  3. public Pose(double x, double y, double alpha) {
  4. this.x = x;
  5. this.y = y;
  6. this.z = alpha; // em radianos
  7. }
  8. public Pose() {
  9. this.x = (int )(Math.random() * 100 - 50);
  10. this.y = (int )(Math.random() * 100 - 50);
  11. this.z = (int )(Math.random() * Math.PI * 2.0);
  12. }
  13. }