Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 12:34:00 AM (14 years ago)
Author:
landauf
Message:

merged doc branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/util/MathConvert.h

    r6417 r7401  
    2828
    2929/**
    30     @file
    31     @brief
    32         Math conversion functions. Definitions are in Math.cc
     30@file
     31@ingroup Convert
     32@brief
     33    Conversion functions for Math types like Ogre::Vector3 (definitions are in Math.cc)
    3334*/
    3435
     
    4647    ////////////////////
    4748
    48     // Vector2 to std::string
     49    /// Ogre::Vector2 to std::string conversion
    4950    template <>
    5051    struct ConverterExplicit<orxonox::Vector2, std::string>
     
    6263    };
    6364
    64     // Vector3 to std::string
     65    /// Ogre::Vector3 to std::string conversion
    6566    template <>
    6667    struct ConverterExplicit<orxonox::Vector3, std::string>
     
    7879    };
    7980
    80     // Vector4 to std::string
     81    /// Ogre::Vector4 to std::string conversion
    8182    template <>
    8283    struct ConverterExplicit<orxonox::Vector4, std::string>
     
    9495    };
    9596
    96     // Quaternion to std::string
     97    /// Ogre::Quaternion to std::string conversion
    9798    template <>
    9899    struct ConverterExplicit<orxonox::Quaternion, std::string>
     
    110111    };
    111112
    112     // ColourValue to std::string
     113    /// Ogre::ColourValue to std::string conversion
    113114    template <>
    114115    struct ConverterExplicit<orxonox::ColourValue, std::string>
     
    131132    ////////////////////
    132133
    133     // std::string to Vector2
     134    /// std::string to Ogre::Vector2 conversion
    134135    template <> struct _UtilExport ConverterFallback<std::string, orxonox::Vector2>
    135136    { static bool convert(orxonox::Vector2*     output, const std::string& input); };
    136     // std::string to Vector3
     137    /// std::string to Ogre::Vector3 conversion
    137138    template <> struct _UtilExport ConverterFallback<std::string, orxonox::Vector3>
    138139    { static bool convert(orxonox::Vector3*     output, const std::string& input); };
    139     // std::string to Vector4
     140    /// std::string to Ogre::Vector4 conversion
    140141    template <> struct _UtilExport ConverterFallback<std::string, orxonox::Vector4>
    141142    { static bool convert(orxonox::Vector4*     output, const std::string& input); };
    142     // std::string to Quaternion
     143    /// std::string to Ogre::Quaternion conversion
    143144    template <> struct _UtilExport ConverterFallback<std::string, orxonox::Quaternion>
    144145    { static bool convert(orxonox::Quaternion*  output, const std::string& input); };
    145     // std::string to ColourValue
     146    /// std::string to Ogre::ColourValue conversion
    146147    template <> struct _UtilExport ConverterFallback<std::string, orxonox::ColourValue>
    147148    { static bool convert(orxonox::ColourValue* output, const std::string& input); };
     
    152153    ///////////////////////////////
    153154
    154     // From Radian
     155    /// Delegates conversions from Radian to conversions from float
    155156    template <class ToType>
    156157    struct ConverterFallback<orxonox::Radian, ToType>
     
    162163    };
    163164
    164     // From Degree
     165    /// Delegates conversions from Degree to conversions from float
    165166    template <class ToType>
    166167    struct ConverterFallback<orxonox::Degree, ToType>
     
    172173    };
    173174
    174     // To Radian
     175    /// Delegates conversions to Radian to conversions to float
    175176    template <class FromType>
    176177    struct ConverterFallback<FromType, orxonox::Radian>
     
    189190    };
    190191
    191     // To Degree
     192    /// Delegates conversions to Degree to conversions to float
    192193    template <class FromType>
    193194    struct ConverterFallback<FromType, orxonox::Degree>
Note: See TracChangeset for help on using the changeset viewer.