|
|
/*************************************************************************** vim:tabstop=4 line.h - description ------------------- begin : Sun Jul 1 2001 copyright : (C) 2001 by Francois Biot email : fbiot@free.fr ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef _line_ #define _line_ #include "glsurface.h" #include "point.h" #include "vect.h" class line { public: line () {}; line(const point &a,const point &b) : ma(a), mb(b) {}; line(const point &start,const vect &vdir) : ma(start), mb(start) { mb.Translate(vdir); }; void Render() const; line* Duplicate() { return new line(ma,mb); }; float PlanSide(const glsurface *) const { return 0;} // TODO void SetStartColor (couleur &c) { ma.SetColor(c); }; void SetEndColor (couleur &c) { mb.SetColor(c); }; const point& GetStart() const { return ma; }; const point& GetEnd () const { return mb; }; private: point ma; point mb; }; #endif
Generated by: saturn on FrancoisLinux on Sun Feb 3 20:01:44 2002, using kdoc 2.0a53. |