N = 1000;
X = 2*pi*rand(2,N);
r = .5;
Y = HyperSphere([X],r);
plot3(Y(1,:),Y(2,:),Y(3,:),'r.');