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/osgUtil/ConvertVec

    r12139 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*/ 
     
    1717namespace osgUtil { 
    1818 
    19 template <typename InType, typename OutType,  
    20           unsigned int InSize = InType::num_components,  
     19template <typename InType, typename OutType, 
     20          unsigned int InSize = InType::num_components, 
    2121          unsigned int OutSize = OutType::num_components> 
    2222struct ConvertVec 
     
    3232{ 
    3333    static void convert(InType & in, OutType & out) 
    34     {  
    35         out.set(static_cast<typename OutType::value_type>(in.x()),  
    36                 static_cast<typename OutType::value_type>(in.y()));  
     34    { 
     35        out.set(static_cast<typename OutType::value_type>(in.x()), 
     36                static_cast<typename OutType::value_type>(in.y())); 
    3737    } 
    3838}; 
     
    4242{ 
    4343    static void convert(InType & in, OutType & out) 
    44     {  
    45         out.set(static_cast<typename OutType::value_type>(in.x()),  
    46                 static_cast<typename OutType::value_type>(in.y()),  
    47                 static_cast<typename OutType::value_type>(0.0));  
     44    { 
     45        out.set(static_cast<typename OutType::value_type>(in.x()), 
     46                static_cast<typename OutType::value_type>(in.y()), 
     47                static_cast<typename OutType::value_type>(0.0)); 
    4848    } 
    4949}; 
     
    5353{ 
    5454    static void convert(InType & in, OutType & out) 
    55     {  
    56         out.set(static_cast<typename OutType::value_type>(in.x()),  
    57                 static_cast<typename OutType::value_type>(in.y()),  
    58                 static_cast<typename OutType::value_type>(0.0),  
    59                 static_cast<typename OutType::value_type>(1.0));  
     55    { 
     56        out.set(static_cast<typename OutType::value_type>(in.x()), 
     57                static_cast<typename OutType::value_type>(in.y()), 
     58                static_cast<typename OutType::value_type>(0.0), 
     59                static_cast<typename OutType::value_type>(1.0)); 
    6060    } 
    6161}; 
     
    6969{ 
    7070    static void convert(InType & in, OutType & out) 
    71     {  
    72         out.set(static_cast<typename OutType::value_type>(in.x()),  
    73                 static_cast<typename OutType::value_type>(in.y()));  
     71    { 
     72        out.set(static_cast<typename OutType::value_type>(in.x()), 
     73                static_cast<typename OutType::value_type>(in.y())); 
    7474    } 
    7575}; 
     
    7979{ 
    8080    static void convert(InType & in, OutType & out) 
    81     {  
    82         out.set(static_cast<typename OutType::value_type>(in.x()),  
    83                 static_cast<typename OutType::value_type>(in.y()),  
    84                 static_cast<typename OutType::value_type>(in.z()));  
     81    { 
     82        out.set(static_cast<typename OutType::value_type>(in.x()), 
     83                static_cast<typename OutType::value_type>(in.y()), 
     84                static_cast<typename OutType::value_type>(in.z())); 
    8585    } 
    8686}; 
     
    9090{ 
    9191    static void convert(InType & in, OutType & out) 
    92     {  
    93         out.set(static_cast<typename OutType::value_type>(in.x()),  
    94                 static_cast<typename OutType::value_type>(in.y()),  
    95                 static_cast<typename OutType::value_type>(in.z()),  
    96                 static_cast<typename OutType::value_type>(1.0));  
     92    { 
     93        out.set(static_cast<typename OutType::value_type>(in.x()), 
     94                static_cast<typename OutType::value_type>(in.y()), 
     95                static_cast<typename OutType::value_type>(in.z()), 
     96                static_cast<typename OutType::value_type>(1.0)); 
    9797    } 
    9898}; 
     
    106106{ 
    107107    static void convert(InType & in, OutType & out) 
    108     {  
    109         out.set(static_cast<typename OutType::value_type>(in.x()/in.w()),  
    110                 static_cast<typename OutType::value_type>(in.y()/in.w()));  
     108    { 
     109        out.set(static_cast<typename OutType::value_type>(in.x()/in.w()), 
     110                static_cast<typename OutType::value_type>(in.y()/in.w())); 
    111111    } 
    112112}; 
     
    116116{ 
    117117    static void convert(InType & in, OutType & out) 
    118     {  
    119         out.set(static_cast<typename OutType::value_type>(in.x()/in.w()),  
    120                 static_cast<typename OutType::value_type>(in.y()/in.w()),  
    121                 static_cast<typename OutType::value_type>(in.z()/in.w()));  
     118    { 
     119        out.set(static_cast<typename OutType::value_type>(in.x()/in.w()), 
     120                static_cast<typename OutType::value_type>(in.y()/in.w()), 
     121                static_cast<typename OutType::value_type>(in.z()/in.w())); 
    122122    } 
    123123}; 
     
    127127{ 
    128128    static void convert(InType & in, OutType & out) 
    129     {  
    130         out.set(static_cast<typename OutType::value_type>(in.x()),  
    131                 static_cast<typename OutType::value_type>(in.y()),  
    132                 static_cast<typename OutType::value_type>(in.z()),  
    133                 static_cast<typename OutType::value_type>(in.w()));  
     129    { 
     130        out.set(static_cast<typename OutType::value_type>(in.x()), 
     131                static_cast<typename OutType::value_type>(in.y()), 
     132                static_cast<typename OutType::value_type>(in.z()), 
     133                static_cast<typename OutType::value_type>(in.w())); 
    134134    } 
    135135};