Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxPointZ.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Edo Poll (poll@wins.uva.nl)
00008  */
00009 
00010 #ifndef HxPointZ_h
00011 #define HxPointZ_h
00012 
00013 #include "HxVec3Int.h"
00014 #include "HxVec3Double.h"
00015 
00016 
00020 class L_HXBASIS HxPointZ : public HxVec3Int
00021 {
00022 public:
00024                         HxPointZ(int x = 0, int y = 0, int z = 0);
00025 
00027                         HxPointZ(const HxVec3Int& rhs);
00028 
00030                         HxPointZ(const HxVec3Double& rhs);
00031 };
00032 
00033 inline
00034 HxPointZ::HxPointZ(int x, int y, int z) : HxVec3Int(x, y, z)
00035 {
00036 }
00037 
00038 inline
00039 HxPointZ::HxPointZ(const HxVec3Int& rhs)
00040     : HxVec3Int(rhs.x(), rhs.y(), rhs.z())
00041 {
00042 }
00043 
00044 inline
00045 HxPointZ::HxPointZ(const HxVec3Double& rhs)
00046     : HxVec3Int(rhs.x()+0.5, rhs.y()+0.5, rhs.z()+0.5)
00047 {
00048 }
00049 
00050 #endif

Generated on Tue Feb 3 14:18:41 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001