Main Page -
Class Hierarchy -
Class List -
File List -
Class Members -
Related Pages -

Information | Reference | SourceForge Project | Author
Muli3D

Reference: Muli3D: m3dmath_plane.h Source File

m3dmath_plane.h

Go to the documentation of this file.
00001 /* 00002 Muli3D - a software rendering library 00003 Copyright (C) 2004, 2005 Stephan Reiter <streiter@aon.at> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00022 00023 #ifndef __M3DMATH_PLANE_H__ 00024 #define __M3DMATH_PLANE_H__ 00025 00026 #include "m3dmath_common.h" 00027 #include "m3dmath_vector3.h" 00028 #include "m3dmath_vector4.h" 00029 00030 struct plane 00031 { 00032 vector3 normal; 00033 float32 d; 00034 00035 plane(); 00036 plane( const plane &i_vVal ); 00037 plane( const float32 i_fA, const float32 i_fB, const float32 i_fC, const float32 i_fD ); 00038 plane( const struct vector3 &i_vNormal, const float32 i_fD ); 00039 00040 const plane &operator =( const plane &i_vVal ); 00041 00042 operator float32*(); 00043 operator const float32*() const; 00044 00045 plane operator +() const; 00046 plane operator -() const; 00047 00048 float32 operator *( const struct vector3 &i_vVal ) const; 00049 float32 operator *( const struct vector4 &i_vVal ) const; 00050 }; 00051 00052 #include "m3dmath_plane.inl" 00053 00054 #endif // __M3DMATH_PLANE_H__

Documentation created with doxygen SourceForge.net Logo