Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgParticle/range

    r7092 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    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 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * 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 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    3131        A simple struct template useful to store ranges of values as min/max pairs. 
    3232        This struct template helps storing min/max ranges for values of any kind; class <CODE>ValueType</CODE> is 
    33         the type of values to be stored, and it must support operations <CODE>ValueType + ValueType</CODE>, <CODE>ValueType - ValueType</CODE>,  
     33        the type of values to be stored, and it must support operations <CODE>ValueType + ValueType</CODE>, <CODE>ValueType - ValueType</CODE>, 
    3434        and <CODE>ValueType * float</CODE>, otherwise the <CODE>geValueTyperandom()</CODE> method will not compile. 
    35         This struct could be extended to customize the random number generator (now it uses only  
     35        This struct could be extended to customize the random number generator (now it uses only 
    3636        <CODE>std::rand()</CODE>). 
    3737    */ 
    3838    template<class ValueType> struct range 
    3939    { 
    40      
     40 
    4141        /// Lower bound. 
    4242        ValueType minimum; 
    43          
     43 
    4444        /// Higher bound. 
    4545        ValueType maximum; 
     
    4747        /// Construct the object by calling default constructors for min and max. 
    4848        range() : minimum(ValueType()), maximum(ValueType()) {} 
    49          
     49 
    5050        /// Construct and initialize min and max directly. 
    5151        range(const ValueType& mn, const ValueType& mx) : minimum(mn), maximum(mx) {} 
     
    6565            return minimum + (maximum - minimum) * sqrtf( static_cast<float>(rand()) / static_cast<float>(RAND_MAX) ); 
    6666        } 
    67          
     67 
    6868        ValueType mid() const 
    6969        { 
     
    7575    /// Range of floats. 
    7676    typedef range<float> rangef; 
    77      
     77 
    7878    /// Range of osg::Vec2s. 
    7979    typedef range<osg::Vec2> rangev2; 
    80      
     80 
    8181    /// Range of osg::Vec3s. 
    8282    typedef range<osg::Vec3> rangev3; 
    83      
     83 
    8484    /// Range of osg::Vec4s. 
    8585    typedef range<osg::Vec4> rangev4;