• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

posgeom.h

00001 #ifndef posgeom_h
00002 #define posgeom_h
00003 
00004 /*+
00005 ________________________________________________________________________
00006 
00007  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
00008  Author:        Bert
00009  Date:          Jan 2003
00010  RCS:           $Id: posgeom.h,v 1.7 2009-07-22 16:01:14 cvsbert Exp $
00011 ________________________________________________________________________
00012 
00013 -*/
00014 
00015 #include "geometry.h"
00016 #include "position.h"
00017 
00018 inline Geom::Point2D<int>       pt( const BinID& bid )
00019                                 { return Geom::Point2D<int>(bid.inl,bid.crl); }
00020 inline Geom::Point2D<double>    pt( const Coord& c )
00021                                 { return Geom::Point2D<double>(c.x,c.y); }
00022 
00023 inline BinID                    bid( const Geom::Point2D<int>& p )
00024                                 { return BinID(p.x,p.y); }
00025 inline Coord                    crd( const Geom::Point2D<double>& p )
00026                                 { return Coord(p.x,p.y); }
00027 
00028 
00029 #endif

Generated on Tue Nov 30 2010 for Basic by  doxygen 1.7.1