Skip to content

Commit f8ca529

Browse files
fix signs
1 parent 0ca9b73 commit f8ca529

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uvwriter/uvwriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ main(int argc, char **argv) {
154154
SpiceDouble s_radius,s_lon,s_lat;
155155
reclat_c( srcrect, &s_radius, &s_lon, &s_lat );
156156
/* [u,v,w]^T=[sinH cosH 0; -sindel*cosH sindel*sinH cosdel; cosdel*cosH -cosdel*sinH sindel] [x y z]^T */
157-
double H=s_lon;
158-
double del=M_PI_2-s_lat;
157+
double H=-s_lon;
158+
double del=s_lat;
159159
rotmat[0][0]=sin(H); rotmat[0][1]=cos(H); rotmat[0][2]=0.0;
160160
rotmat[1][0]=-sin(del)*cos(H); rotmat[1][1]=sin(del)*sin(H); rotmat[1][2]=cos(del);
161161
rotmat[2][0]=cos(del)*cos(H); rotmat[2][1]=-cos(del)*sin(H); rotmat[2][2]=sin(del);

0 commit comments

Comments
 (0)