amazing stuff, a bit difficult to follow for click click click type of users.

i found  http://webphysics.davidson.edu/Applets/PhysletsDoc/bfield/BField.html

setX

"public boolean setX(int id,
                    double x)

    Set X position of an object.

    Parameters:
        id - The ID of the object.
        x - The x coordinate."

i don't see

getX(int id):          Get the x position of an object. i can find getBx and getBy.


but how do i use the code
"
x1=getX(id[0]); y1=getY(id[0]);
for(i=1;i<18;i++){// move all the coils (x,y) together
setX(id,x1+=dx);
setY(id,y1);
}
"
inside the rest of the html codes?

is there any examples to follow the syntax ? ;D