strange behavior of ggbApplet.getXcoord()
I work on an applet with JS, which should draw Penrose kites and darts. Now it's in test phase, and I faced with a strange behavior of the ggbApplet.getXcoord() command. I create dozens of points, and get their X coordinate with the command above. The majority of the data are right, but some of them has an absolutely wrong value, eg.: instead of 0 (zero) it's value is -8.88E-016.
For the sake of simplicity I cleaned my applet from all needless steps, there are only those commands in the script, which can illustrate this behavior.
You can see G, H and K points, every one's X coordinate is 0. These values are apparently good ones.
I checked the values with X() function, the result of course is the same.
But in those cases where the X coordinate of the point is 0, the ggbApplet.getXcoord() command in my applet gives nonsense data, and I don't know why.
Those points which don't have 0 X coordinate works well.
Can anybody help?
test.ggb is attached.