Changeset 5368 for trunk/psLib/src/astro/psSphereOps.c
- Timestamp:
- Oct 18, 2005, 12:14:47 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psSphereOps.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psSphereOps.c
r5343 r5368 8 8 * @author Dave Robbins, MHPCC 9 9 * 10 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-10-1 5 01:42:46$10 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-10-18 22:14:47 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 105 105 out = psSphereAlloc(); 106 106 } 107 107 // double r = -coord->r; 108 108 // apply the transform by creating a new psSphereRot from the input coord 109 109 // and combining it with the input transform (see ADD) … … 114 114 sin(coord->d), 115 115 0.0); 116 116 117 // psSphereRot* coordQuatConjugate = psSphereRotQuat( 117 118 // coordQuat->q0, coordQuat->q1, coordQuat->q2, coordQuat->q3); … … 131 132 psSphereRot *inv = (psSphereRot*)psAlloc(sizeof(psSphereRot)); 132 133 *inv = *transform; 133 psSphereRot *result = psSphereRotCombine(NULL, transform, coordQuat);134 psSphereRotInvert(inv);135 psSphereRotCombine(result, result, inv);134 // psSphereRot *result = psSphereRotCombine(NULL, transform, coordQuat); 135 // inv = psSphereRotInvert(inv); 136 // psSphereRotCombine(result, result, inv); 136 137 // psSphereRot *result = psSphereRotCombine(NULL, inv, coordQuat); 137 138 // psSphereRotCombine(result, result, transform); … … 139 140 // psSphereRotCombine(result, inv, result); 140 141 141 // out->r = atan2(result->q1, result->q0); 142 psSphereRot *result = psSphereRotCombine(NULL, coordQuat, transform); 143 inv = psSphereRotInvert(inv); 144 // *(psSphereRot**)&transform = psSphereRotInvert( *(psSphereRot**)&transform); 145 result = psSphereRotCombine(result, inv, result); 146 // *(psSphereRot**)&transform = psSphereRotInvert( *(psSphereRot**)&transform); 147 148 // out->r = atan2(result->q0, result->q1); 142 149 out->r = atan2(result->q1, result->q0); 143 150 out->d = asin(result->q2); … … 198 205 rot->q2 = -rot->q2; 199 206 207 // rot->q3 = rot->q3; 200 208 return rot; 201 209 }
Note:
See TracChangeset
for help on using the changeset viewer.
