Changeset 1463 for trunk/psLib/src/astro/psCoord.c
- Timestamp:
- Aug 10, 2004, 1:59:41 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r1440 r1463 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08- 09 23:34:57$13 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-10 23:59:41 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 static float arg(float x, float y); 32 32 33 // This is the only function in this file which I understand. 34 psPlane* psPlaneTransformApply(psPlane* out, const psPlaneTransform* transform, const psPlane* coords) 33 psPlane* psPlaneTransformApply(psPlane* out, 34 const psPlaneTransform* transform, 35 const psPlane* coords) 35 36 { 36 37 if (out == NULL) { … … 50 51 psPlane* psPlaneDistortApply(psPlane* out, 51 52 const psPlaneDistort* transform, 52 const psPlane* coords, float term3, float term4) 53 const psPlane* coords, 54 float term3, 55 float term4) 53 56 { 54 57 if (out == NULL) { … … 59 62 (transform->x->coeff[1][0][0][0] * coords->x) + 60 63 (transform->x->coeff[0][1][0][0] * coords->y) + 61 (transform->x->coeff[0][0][1][0] * term3) + (transform->x->coeff[0][0][0][1] * term4); 64 (transform->x->coeff[0][0][1][0] * term3) + 65 (transform->x->coeff[0][0][0][1] * term4); 62 66 63 67 out->y = transform->y->coeff[0][0][0][0] + 64 68 (transform->y->coeff[1][0][0][0] * coords->x) + 65 69 (transform->y->coeff[0][1][0][0] * coords->y) + 66 (transform->y->coeff[0][0][1][0] * term3) + (transform->y->coeff[0][0][0][1] * term4); 70 (transform->y->coeff[0][0][1][0] * term3) + 71 (transform->y->coeff[0][0][0][1] * term4); 67 72 68 73 return (out);
Note:
See TracChangeset
for help on using the changeset viewer.
