Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

line.h

00001 // $Id: line_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $
00002 
00003 // Line Header File
00004 // Written by: Marco Krohn, <marco.krohn@gmx.de>
00005 
00006 // Copyright (C) 2001 -     , Marco Krohn, marco.krohn@gmx.de
00007 //
00008 // This program is free software; you can redistribute it and/or modify
00009 // it under the terms of the GNU General Public License as published by
00010 // the Free Software Foundation; either version 1, or (at your option)
00011 // any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 
00018 #ifndef __LINE_INCLUDED
00019 #define __LINE_INCLUDED
00020 
00021 #include "common/point.h"
00022 
00023 
00024 
00025 
00026 
00027 //----------------------------------------  class TLine  ----------------------------------------
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

Generated on Thu Jun 20 18:13:16 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001