Changeset 13041 for OpenSceneGraph/trunk/include/osg/Plane
 Timestamp:
 03/21/12 18:36:20 (5 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osg/Plane
r11927 r13041 1 /* *c++* OpenSceneGraph  Copyright (C) 19982006 Robert Osfield 1 /* *c++* OpenSceneGraph  Copyright (C) 19982006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 28 28 29 29 /** @brief A plane class. It can be used to represent an infinite plane. 30 * 30 * 31 31 * The infinite plane is described by an implicit plane equation a*x+b*y+c*z+d = 0. Though it is not mandatory that 32 32 * a^2+b^2+c^2 = 1 is fulfilled in general some methods require it (@see osg::Plane::distance). */ … … 194 194 195 195 inline Vec3_type getNormal() const { return Vec3_type(_fv[0],_fv[1],_fv[2]); } 196 196 197 197 /** Calculate the distance between a point and the plane. 198 198 * @remark This method only leads to real distance values if the plane's norm is 1. … … 323 323 324 324 /** Transform the plane by matrix. Note, this operation carries out 325 * the calculation of the inverse of the matrix since a plane 325 * the calculation of the inverse of the matrix since a plane 326 326 * must be multiplied by the inverse transposed to transform it. This 327 327 * make this operation expensive. If the inverse has been already … … 360 360 } // end of namespace 361 361 362 #endif 362 #endif