Changeset 166
- Timestamp:
- 03/12/07 10:33:33 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/as2/lib/com/modestmaps/geo/AbstractProjection.as
r73 r166 29 29 public function toString():String 30 30 { 31 return 'Abstract('+zoom+', '+T.toString()+')'; 31 throw new Error("Abstract method not implemented by subclass."); 32 return null; 32 33 } 33 34 34 35 /* 35 * Return raw projected point - currently linear.36 * Return raw projected point. 36 37 */ 37 38 private function rawProject(point:Point):Point 38 39 { 39 return new Point(point.x, point.y); 40 throw new Error("Abstract method not implemented by subclass."); 41 return null; 40 42 } 41 43 42 44 /* 43 * Return raw unprojected point - currently linear.45 * Return raw unprojected point. 44 46 */ 45 47 private function rawUnproject(point:Point):Point 46 48 { 47 return new Point(point.x, point.y); 49 throw new Error("Abstract method not implemented by subclass."); 50 return null; 48 51 } 49 52 trunk/as2/lib/com/modestmaps/geo/LinearProjection.as
r73 r166 1 import com.modestmaps.core.Point; 1 2 import com.modestmaps.geo.Transformation; 2 3 import com.modestmaps.geo.AbstractProjection; … … 17 18 return 'Linear('+zoom+', '+T.toString()+')'; 18 19 } 20 21 /* 22 * Return raw projected point. 23 */ 24 private function rawProject(point:Point):Point 25 { 26 return new Point(point.x, point.y); 27 } 28 29 /* 30 * Return raw unprojected point. 31 */ 32 private function rawUnproject(point:Point):Point 33 { 34 return new Point(point.x, point.y); 35 } 19 36 }
