Mathematical operations XML

  • I know about add/sub/mul/div/mod math operators. But this is not enough.
    How i can get sin or cosine? How get sqrt?
    How to convert from Cartesian coordinates to polar coordinates?

  • Hi,

    Quote

    I know about add/sub/mul/div/mod math operators. But this is not enough.
    How i can get sin or cosine?

    okay, I haven't thought that there would be really a need for sin and cos,
    but okay, I have added you note and will probably add them soon,

    Quote

    How get sqrt?

    just: pow(var, 0.5);

    Quote

    How to convert from Cartesian coordinates to polar coordinates?

    do you really want to convert between cartesian and polar coordinates,
    or do you just want the pano coordinates from the screen?

    the second ones can be get/converted with the screentosphere and spheretoscreen actions:
    https://krpano.com/docu/actions/#screentosphere

    best regards,
    Klaus

  • okay, I haven't thought that there would be really a need for sin and cos,
    but okay, I have added you note and will probably add them soon,

    OK, thanks. Do not forget about other trigonometric functions *smile*

    just: pow(var, 0.5);


    Thanks, I did not notice this feature *rolleyes*


    do you really want to convert between cartesian and polar coordinates,
    or do you just want the pano coordinates from the screen?


    No, it's not. I had to calculate the direction to go in the panorama of knowing the GPS coordinates of panoramas.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!