public class Planet { private double radie; private Point3D position; public Planet(double radie) { position = new Point3D(); this.radie = radie; }//konstruktor public Planet(double radie, Point3D position){ this.radie = radie; this.position = position; }//konstruktor public double getRadie() { return radie; }//getRadie public Point3D getPosition() { return position; }//getPosition public void moveTo(Point3D position) { this.position = position; }//setPosition public double computeVolume() { return 4* Math.PI*Math.pow(radie, 3) / 3; }//computeVolume public double computeDistance(Planet other) { return position.computeDistance(other.position); }//computeDistance } //Planet