You are not logged in.

## Mathematical operations XML

Beginner

Posts: 17

Location: RUSSIA

Occupation: IT engineer

Thursday, December 9th 2010, 10:49pm

### Mathematical operations XML

How i can get sin or cosine? How get sqrt?
How to convert from Cartesian coordinates to polar coordinates?

Monday, December 13th 2010, 12:26pm

Hi,

### Quoted

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

Beginner

Posts: 17

Location: RUSSIA

Occupation: IT engineer

Saturday, December 18th 2010, 2:25pm

### Quoted

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

### Quoted

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

Thanks, I did not notice this feature

### 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.