glc_line3d.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  This file is part of the GLC-lib library.
00004  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
00005  http://glc-lib.sourceforge.net
00006 
00007  GLC-lib is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU Lesser General Public License as published by
00009  the Free Software Foundation; either version 3 of the License, or
00010  (at your option) any later version.
00011 
00012  GLC-lib is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU Lesser General Public License for more details.
00016 
00017  You should have received a copy of the GNU Lesser General Public License
00018  along with GLC-lib; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020 
00021  *****************************************************************************/
00023 
00024 #ifndef GLC_LINE3D_H_
00025 #define GLC_LINE3D_H_
00026 
00027 #include "glc_vector3d.h"
00028 
00029 #include "../glc_config.h"
00030 
00033 
00036 
00037 class GLC_LIB_EXPORT GLC_Line3d
00038 {
00040 
00042 
00043 public:
00045         GLC_Line3d();
00046 
00048         GLC_Line3d(const GLC_Point3d& point, const GLC_Vector3d& vector);
00049 
00051         GLC_Line3d(const GLC_Line3d& line);
00052 
00054         ~GLC_Line3d();
00056 
00058 
00060 
00061 public:
00063         inline GLC_Point3d startingPoint() const
00064         {return m_Point;}
00065 
00067         inline GLC_Vector3d direction() const
00068         {return m_Vector;}
00069 
00071 
00073 
00075 
00076 public:
00078         inline void setStartingPoint(const GLC_Point3d& point)
00079         {m_Point= point;}
00080 
00082         inline void setDirection(const GLC_Vector3d& direction)
00083         {m_Vector= direction;}
00085 
00087 // Private Member
00089 private:
00091         GLC_Point3d m_Point;
00092 
00094         GLC_Vector3d m_Vector;
00095 
00096 };
00097 
00098 #endif /* GLC_LINE3D_H_ */

SourceForge.net Logo

©2005-2011 Laurent Ribon