//package Jama;

import javax.media.j3d.*;
import javax.vecmath.*;
import com.sun.j3d.utils.geometry.*;

public class mySphere {
	 
   TransformGroup shape;

   public mySphere(double x, double y, double z, float radius, Appearance a) {

	// rotate object has composited transformation matrix
	Transform3D transform = new Transform3D();

    transform.setTranslation(new Vector3f((float)x, 
    						(float)y, (float)z));

	shape = new TransformGroup(transform);
	shape.addChild(new Sphere(radius, a));	
   }


   TransformGroup getShape(){
      return shape;
   }
}

