IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2005, 10:23:57 AM (21 years ago)
Author:
drobbin
Message:

Fixed psSphereRotAlloc and test. Correctly verified calculations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psSphereOps.c

    r4898 r5306  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-08-30 01:14:10 $
     9 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-10-13 20:23:57 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    153153
    154154    // following came from ADD
    155     out->q0 = b3*a0 + b2*a1 - b1*a2 + b0*a3;
    156     out->q1 = b3*a1 - b2*a0 + b1*a3 + b0*a2;
    157     out->q2 = b3*a2 + b2*a3 + b1*a0 - b0*a1;
    158     out->q3 = b3*a3 - b3*a2 - b1*a1 - b0*a0;
     155    //    out->q0 = b3*a0 + b2*a1 - b1*a2 + b0*a3;
     156    //    out->q1 = b3*a1 - b2*a0 + b1*a3 + b0*a2;
     157    //    out->q2 = b3*a2 + b2*a3 + b1*a0 - b0*a1;
     158    out->q0 = a3*b0 + a0*b3 + a1*b2 - a2*b1;
     159    out->q1 = a3*b1 - a0*b2 + a1*b3 + a2*b0;
     160    out->q2 = a3*b2 + a0*b1 - a1*b0 + a2*b3;
     161
     162    out->q3 = b3*a3 - b2*a2 - b1*a1 - b0*a0;
    159163
    160164    return out;
Note: See TracChangeset for help on using the changeset viewer.