You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

N'drew

Beginner

  • "N'drew" started this thread

Posts: 17

Location: RUSSIA

Occupation: IT engineer

  • Send private message

1

Thursday, December 9th 2010, 10:49pm

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?

2

Monday, December 13th 2010, 12:26pm

Hi,

Quoted

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,

Quoted

How get sqrt?
just: pow(var, 0.5);

Quoted

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:
http://krpano.com/docu/actions/#screentosphere

best regards,
Klaus

N'drew

Beginner

  • "N'drew" started this thread

Posts: 17

Location: RUSSIA

Occupation: IT engineer

  • Send private message

3

Saturday, December 18th 2010, 2:25pm



Quoted

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,


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


Quoted

How get sqrt?
just: pow(var, 0.5);

Thanks, I did not notice this feature *rolleyes*



Quoted

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?

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

4

Monday, December 20th 2010, 11:11am

Hi,

okay, I will try to add more math functions in the next versions,

best regards,
Klaus

Similar threads