SharkD wrote:
> I've never come across this particular syntax. What is more common is to > do something like this:> > Sph = new Sphere();> Sph.radius = 1;> Sph.position = [0,0,1];> > -Mike
Or something like this:
function Sphere(radius, position)
{
this.radius = radius;
this.position = position;
}
var Sph = new Sphere(1, [0,0,1]);