Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2009, 1:18:36 PM (15 years ago)
Author:
rgrieder
Message:

Found some non empty new lines.

Location:
code/branches/presentation2/src/libraries/util
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/util/Clock.cc

    r6319 r6387  
    4444        delete timer_;
    4545    }
    46    
     46
    4747    /**
    4848    @remarks
  • code/branches/presentation2/src/libraries/util/Math.cc

    r6137 r6387  
    138138                return orxonox::Vector2(0, 1);
    139139        }
    140        
     140
    141141        float cos_value = clamp<float>(myorthonormal.dotProduct(projection) / projectionlength, -1, 1);
    142142        float sin_value = sqrt( 1 - cos_value*cos_value );
    143        
     143
    144144        if ((mydirection.crossProduct(myorthonormal)).dotProduct(distance) > 0)
    145145            return orxonox::Vector2( sin_value, cos_value );
     
    179179        }
    180180        //float angle = acos(clamp<float>(myorthonormal.dotProduct(projection) / projectionlength, -1, 1));
    181        
     181
    182182        float cos_value = clamp<float>(myorthonormal.dotProduct(projection) / projectionlength, -1, 1);
    183183        float sin_value = sqrt( 1 - cos_value*cos_value );
  • code/branches/presentation2/src/libraries/util/MultiType.h

    r5738 r6387  
    232232
    233233            virtual void toString(std::ostream& outstream) const = 0;
    234            
     234
    235235            virtual void importData( uint8_t*& mem )=0;
    236236            virtual void exportData( uint8_t*& mem ) const=0;
     
    339339            template <typename T> inline bool isType()                    const { return false; } // Only works for specialized values - see below
    340340            std::string                       getTypename()               const;
    341            
     341
    342342            /** @brief Saves the value of the MT to a bytestream (pointed at by mem) and increases mem pointer by size of MT */
    343343            inline void                       exportData(uint8_t*& mem) const { assert(sizeof(MT_Type::Value)<=8); *static_cast<uint8_t*>(mem) = this->getType(); mem+=sizeof(uint8_t); this->value_->exportData(mem); }
  • code/branches/presentation2/src/libraries/util/MultiTypeValue.h

    r5738 r6387  
    150150        /** @brief Puts the current value on the stream */
    151151        inline void toString(std::ostream& outstream) const { outstream << this->value_; }
    152        
     152
    153153        /** @brief loads data from the bytestream (mem) into the MT and increases the bytestream pointer by the size of the data */
    154154        inline void importData( uint8_t*& mem )         { loadAndIncrease( /*(const T&)*/this->value_, mem ); }
     
    160160        T value_; //!< The stored value
    161161    };
    162    
     162
    163163    // Import / Export specialisation
    164164    // ColourValue
  • code/branches/presentation2/src/libraries/util/Serialise.h

    r6320 r6387  
    4040
    4141namespace orxonox{
    42    
     42
    4343    /** @brief returns the size of the variable in a datastream */
    4444    template <class T> inline uint32_t returnSize( const T& variable );
     
    202202        return sizeof(uint32_t);
    203203    }
    204    
     204
    205205    template <> inline void loadAndIncrease( const unsigned int& variable, uint8_t*& mem )
    206206    {
     
    470470        return variable==Degree(*r);
    471471    }
    472    
     472
    473473    // =========== Vector2
    474474
     
    494494        return checkEquality(variable.x, mem) && checkEquality(variable.y, mem+returnSize(variable.x));
    495495    }
    496    
     496
    497497    // =========== Vector3
    498498
     
    521521            checkEquality(variable.z, mem+returnSize(variable.x)+returnSize(variable.y));
    522522    }
    523    
     523
    524524    // =========== Vector4
    525525
     
    551551            checkEquality(variable.z, mem+returnSize(variable.w)+returnSize(variable.x)+returnSize(variable.y));
    552552    }
    553    
     553
    554554    // =========== Quaternion
    555555
     
    581581            checkEquality(variable.z, mem+returnSize(variable.w)+returnSize(variable.x)+returnSize(variable.y));
    582582    }
    583    
     583
    584584    // =========== ColourValue
    585585
     
    611611            checkEquality(variable.a, mem+returnSize(variable.r)+returnSize(variable.g)+returnSize(variable.b));
    612612    }
    613    
     613
    614614    // =========== mbool
    615615
  • code/branches/presentation2/src/libraries/util/mbool.h

    r5738 r6387  
    6767            inline bool operator!() const
    6868                { return (!this->value_.bool_); }
    69            
     69
    7070            inline unsigned char& getMemory(){ return value_.memory_; }
    7171
Note: See TracChangeset for help on using the changeset viewer.