Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

math/point.h

Go to the documentation of this file.
00001 #ifndef MATH_POINT_H
00002 #define MATH_POINT_H
00003 
00004 /*
00005 
00006   GLT OpenGL C++ Toolkit (LGPL)
00007   Copyright (C) 2000-2002 Nigel Stewart  
00008 
00009   Email: nigels.com@gmail.com   
00010   WWW:   http://www.nigels.com/glt/
00011 
00012   This library is free software; you can redistribute it and/or
00013   modify it under the terms of the GNU Lesser General Public
00014   License as published by the Free Software Foundation; either
00015   version 2.1 of the License, or (at your option) any later version.
00016 
00017   This library is distributed in the hope that it will be useful,
00018   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020   Lesser General Public License for more details.
00021 
00022   You should have received a copy of the GNU Lesser General Public
00023   License along with this library; if not, write to the Free Software
00024   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 */
00027 
00033 #include <math/vector3.h>
00034 
00040 class Matrix;
00041 
00042 class Point : public Vector
00043 {
00044 public:
00045 
00047     Point();    
00053     Point(const Vector &pos,const Vector &normal);
00060     Point(const Vector &pos,const Vector &normal,const Vector &texture);
00067     Point(const double &x,const double &y,const double &z);
00068 
00070           Vector &position();
00072     const Vector &position() const;
00073 
00075           Vector &normal();
00077     const Vector &normal() const;
00078 
00080           Vector &texture();
00082     const Vector &texture() const;
00083 
00085     bool operator==(const Point &vector) const;
00087     bool operator!=(const Point &vector) const;
00088 
00090     void transform(const Matrix &trans);
00091             
00092 private:
00093 
00094     Vector _normal;
00095     Vector _texture;
00096 };
00097 
00098 #endif

Generated on Tue Nov 5 11:11:04 2002 for GLT by doxygen1.2.18