Skip to content

Commit

Permalink
fix signs
Browse files Browse the repository at this point in the history
  • Loading branch information
SarodYatawatta committed May 1, 2024
1 parent 0ca9b73 commit f8ca529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uvwriter/uvwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ main(int argc, char **argv) {
SpiceDouble s_radius,s_lon,s_lat;
reclat_c( srcrect, &s_radius, &s_lon, &s_lat );
/* [u,v,w]^T=[sinH cosH 0; -sindel*cosH sindel*sinH cosdel; cosdel*cosH -cosdel*sinH sindel] [x y z]^T */
double H=s_lon;
double del=M_PI_2-s_lat;
double H=-s_lon;
double del=s_lat;
rotmat[0][0]=sin(H); rotmat[0][1]=cos(H); rotmat[0][2]=0.0;
rotmat[1][0]=-sin(del)*cos(H); rotmat[1][1]=sin(del)*sin(H); rotmat[1][2]=cos(del);
rotmat[2][0]=cos(del)*cos(H); rotmat[2][1]=-cos(del)*sin(H); rotmat[2][2]=sin(del);
Expand Down

0 comments on commit f8ca529

Please sign in to comment.