00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __LINE_INCLUDED
00019 #define __LINE_INCLUDED
00020
00021 #include "common/point.h"
00022
00023
00024
00025
00026
00027
00028
00038 class TLine
00039 {
00040 public:
00041 TLine();
00042 TLine( const TPoint& offset, const TPoint& dir );
00043
00044 const TPoint& GetDir() const;
00050 int GetIntersectionPoint( const TLine& line, TPoint* point ) const;
00051 const TPoint& GetOffset() const;
00052 void SetDir( const TPoint& dir );
00053 void SetLine( const TPoint& offset, const TPoint& dir );
00054 void SetOffset( const TPoint& offset );
00055
00056 private:
00057 TPoint fDir;
00058 TPoint fOffset;
00059
00060 };
00061
00062
00063
00064
00065
00066 #endif // __LINE_INCLUDED