[3.0] Add missed doxygen documentation
[platform/core/uifw/dali-core.git] / dali / public-api / math / radian.h
index 6657851..e8a8faf 100644 (file)
 
 namespace Dali
 {
+/**
+ * @addtogroup dali_core_math
+ * @{
+ */
 
 /**
  * @brief An angle in radians.
  *
  * This reduces ambiguity when using methods which accept angles in degrees or radians.
+ * @SINCE_1_0.0
  */
 struct Radian
 {
   /**
    * @brief default constructor, initialises to 0.
+   * @SINCE_1_0.0
    */
   Radian()
   : radian( 0.f )
@@ -44,6 +50,7 @@ struct Radian
   /**
    * @brief Create an angle in radians.
    *
+   * @SINCE_1_0.0
    * @param[in] value The initial value in radians.
    */
   explicit Radian( float value )
@@ -53,6 +60,7 @@ struct Radian
   /**
    * @brief Create an angle in radians from an angle in degrees.
    *
+   * @SINCE_1_0.0
    * @param[in] degree The initial value in degrees.
    */
   Radian( Degree degree )
@@ -62,8 +70,9 @@ struct Radian
   /**
    * @brief Assign an angle from a float value.
    *
+   * @SINCE_1_0.0
    * @param[in] value Float value in radians
-   * @return a reference to this object
+   * @return A reference to this
    */
   Radian& operator=( float value )
   {
@@ -74,8 +83,9 @@ struct Radian
   /**
    * @brief Assign an angle from a Degree value.
    *
+   * @SINCE_1_0.0
    * @param[in] degree The value in degrees.
-   * @return a reference to this object
+   * @return A reference to this
    */
   Radian& operator=( Degree degree )
   {
@@ -85,6 +95,7 @@ struct Radian
 
   /**
    * @brief Conversion to float
+   * @SINCE_1_0.0
    * @return the float value of this Radian
    */
   operator float() const
@@ -101,22 +112,10 @@ public:
 
 // compiler generated destructor, copy constructor and assignment operators are ok as this class is POD
 
-// useful constant angles
-static const Radian ANGLE_360 = Radian( Math::PI * 2.00f ); ///< 360 degree turn in radians
-static const Radian ANGLE_315 = Radian( Math::PI * 1.75f ); ///< 315 degree turn in radians
-static const Radian ANGLE_270 = Radian( Math::PI * 1.50f  );///< 270 degree turn in radians
-static const Radian ANGLE_225 = Radian( Math::PI * 1.25f ); ///< 225 degree turn in radians
-static const Radian ANGLE_180 = Radian( Math::PI         ); ///< 180 degree turn in radians
-static const Radian ANGLE_135 = Radian( Math::PI * 0.75f ); ///< 135 degree turn in radians
-static const Radian ANGLE_120 = Radian( Math::PI / 3.00f ); ///< 120 degree turn in radians
-static const Radian ANGLE_90  = Radian( Math::PI_2 );       ///< 90 degree turn in radians
-static const Radian ANGLE_45  = Radian( Math::PI_4 );       ///< 45 degree turn in radians
-static const Radian ANGLE_30  = Radian( Math::PI / 6.00f ); ///< 30 degree turn in radians
-static const Radian ANGLE_0   = Radian( 0.0f );             ///< 0 degree turn in radians
-
 /**
  * @brief Compare equality between two radians.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Radian to compare to
  * @return true if the values are identical
@@ -129,6 +128,7 @@ inline bool operator==( Radian lhs, Radian rhs )
 /**
  * @brief Compare inequality between two radians.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Radian to compare to
  * @return true if the values are not identical
@@ -141,6 +141,7 @@ inline bool operator!=( Radian lhs, Radian rhs )
 /**
  * @brief Compare equality between a radian and degree.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Degree to compare to
  * @return true if the values are identical
@@ -153,6 +154,7 @@ inline bool operator==( Radian lhs, Degree rhs )
 /**
  * @brief Compare inequality between a radian and a degree.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Degree to compare to
  * @return true if the values are not identical
@@ -165,6 +167,7 @@ inline bool operator!=( Radian lhs, Degree rhs )
 /**
  * @brief Compare equality between a degree and a radian.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Degree to compare
  * @param[in] rhs Radian to compare to
  * @return true if the values are identical
@@ -177,6 +180,7 @@ inline bool operator==( Degree lhs, Radian rhs )
 /**
  * @brief Compare inequality between a degree and a radian.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Degree to compare
  * @param[in] rhs Radian to compare to
  * @return true if the values are not identical
@@ -189,6 +193,7 @@ inline bool operator!=( Degree lhs, Radian rhs )
 /**
  * @brief Compare greater than between two radians
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Radian to compare to
  * @return true if lhs is greater than rhs
@@ -201,6 +206,7 @@ inline bool operator>( Radian lhs, Radian rhs )
 /**
  * @brief Compare greater than between a radian and a degree.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Degree to compare to
  * @return true if lhs is greater than rhs
@@ -213,6 +219,7 @@ inline bool operator>( Radian lhs, Degree rhs )
 /**
  * @brief Compare greater than between a radian and a degree.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Degree to compare to
  * @return true if lhs is greater than rhs
@@ -225,6 +232,7 @@ inline bool operator>( Degree lhs, Radian rhs )
 /**
  * @brief Compare less than between two radians.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Radian to compare to
  * @return true if lhs is less than rhs
@@ -237,6 +245,7 @@ inline bool operator<( Radian lhs, Radian rhs )
 /**
  * @brief Compare less than between a radian and a degree.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to compare
  * @param[in] rhs Degree to compare to
  * @return true if lhs is less than rhs
@@ -249,6 +258,7 @@ inline bool operator<( Radian lhs, Degree rhs )
 /**
  * @brief Compare less than between a degree and a radian.
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Degree to compare
  * @param[in] rhs Radian to compare to
  * @return true if lhs is less than rhs
@@ -261,6 +271,7 @@ inline bool operator<( Degree lhs, Radian rhs )
 /**
  * @brief Multiply Radian with a float
  *
+ * @SINCE_1_0.0
  * @param[in] lhs Radian to multiply
  * @param[in] rhs float to multiply
  * @return result of the multiplication
@@ -272,6 +283,8 @@ inline Radian operator*( Radian lhs, float rhs )
 
 /**
  * @brief Negate the radian
+ * @SINCE_1_0.0
+ * @param[in] in Radian to negate
  * @return The negative angle
  */
 inline Radian operator-( Radian in )
@@ -281,6 +294,7 @@ inline Radian operator-( Radian in )
 
 /**
  * @brief Clamp a radian value
+ * @SINCE_1_0.0
  * @param angle to clamp
  * @param min value
  * @param max value
@@ -291,6 +305,9 @@ inline Radian Clamp( Radian angle, float min, float max )
   return Radian( Clamp<float>( angle.radian, min, max ) );
 }
 
+/**
+ * @}
+ */
 } // namespace Dali
 
 #endif // __DALI_RADIAN_H__