Пример #1
0
        public Point3D getPointInCartesiansCoords(double theta, double phi, double radius)
        {
            SphereService cCom = getCOMReference();

            if (cCom != null)
            {
                return(cCom.getPointInCartesiansCoords(theta, phi, radius));
            }
            {
                return(new Point3D());
            }
        }
Пример #2
0
        public Sphere getSphere(string name, int radius, int accurasy, Color color)
        {
            SphereService cCom = getCOMReference();

            if (cCom != null)
            {
                return(cCom.getSphere(name, radius, accurasy, color));
            }
            else
            {
                return(null);
            }
        }
Пример #3
0
 public SphereController(ServiceResolver serviceResolver)
 {
     _sphereService  = (SphereService)serviceResolver(ServiceType.SPHERE);
     _roomService    = (RoomService)serviceResolver(ServiceType.ROOM);
     _messageService = (MessageService)serviceResolver(ServiceType.MESSAGE);
 }