Changeset 21629 for issm/trunk-jpl/src/c/bamg/Geometry.cpp
- Timestamp:
- 03/23/17 16:17:46 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/Geometry.cpp
r21623 r21629 103 103 * coefIcoor = (2^30 -1)/D 104 104 */ 105 coefIcoor=(MaxICoor)/(Max(pmax.x-pmin.x,pmax.y-pmin.y)); 105 int MaxICoord = 1073741823; 106 coefIcoor=(MaxICoord)/(Max(pmax.x-pmin.x,pmax.y-pmin.y)); 106 107 if(coefIcoor<=0) _error_("coefIcoor should be positive"); 107 108 } … … 909 910 * coefIcoor = (2^30 -1)/D 910 911 */ 911 return I2( ( Icoor1) (coefIcoor*(P.x-pmin.x)) ,(Icoor1) (coefIcoor*(P.y-pmin.y)) );912 return I2( (int) (coefIcoor*(P.x-pmin.x)) ,(int) (coefIcoor*(P.y-pmin.y)) ); 912 913 }/*}}}*/ 913 914 void Geometry::UnMarkEdges() {/*{{{*/
Note:
See TracChangeset
for help on using the changeset viewer.