* @brief Conversion constructor from an array of two floats.
*
* @since_tizen 2.4
- * @param [in] array of xy
+ * @param [in] array Array of xy
*/
explicit Vector2(const float* array)
: x(array[0]),
* @brief Assignment operator.
*
* @since_tizen 2.4
- * @param[in] array of floats
- * @return itself
+ * @param[in] array Array of floats
+ * @return Itself
*/
Vector2& operator=(const float* array)
{
* @brief Assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs vector to assign.
- * @return itself
+ * @param[in] rhs Vector to assign.
+ * @return Itself
*/
Vector2& operator=(const Vector3& rhs);
* @brief Assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs vector to assign.
- * @return itself
+ * @param[in] rhs Vector to assign.
+ * @return Itself
*/
Vector2& operator=(const Vector4& rhs);
* @brief Addition operator.
*
* @since_tizen 2.4
- * @param[in] rhs vector to add.
+ * @param[in] rhs Vector to add.
* @return A vector containing the result of the addition
*/
Vector2 operator+(const Vector2& rhs) const
* @brief Addition assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs vector to add.
- * @return itself
+ * @param[in] rhs Vector to add.
+ * @return Itself
*/
Vector2& operator+=(const Vector2& rhs)
{
* @brief Subtraction operator.
*
* @since_tizen 2.4
- * @param[in] rhs the vector to subtract
+ * @param[in] rhs The vector to subtract
* @return A vector containing the result of the subtraction
*/
Vector2 operator-(const Vector2& rhs) const
* @brief Subtraction assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs the vector to subtract
- * @return itself
+ * @param[in] rhs The vector to subtract
+ * @return Itself
*/
Vector2& operator-=(const Vector2& rhs)
{
* @brief Multiplication operator.
*
* @since_tizen 2.4
- * @param[in] rhs the vector to multiply
+ * @param[in] rhs The vector to multiply
* @return A vector containing the result of the multiplication
*/
Vector2 operator*(const Vector2& rhs) const
* @brief Multiplication operator.
*
* @since_tizen 2.4
- * @param[in] rhs the float value to scale the vector
+ * @param[in] rhs The float value to scale the vector
* @return A vector containing the result of the scaling
*/
Vector2 operator*(float rhs) const
* @brief Multiplication assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs the vector to multiply
- * @return itself
+ * @param[in] rhs The vector to multiply
+ * @return Itself
*/
Vector2& operator*=(const Vector2& rhs)
{
* @brief Multiplication assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs the float value to scale the vector
- * @return itself
+ * @param[in] rhs The float value to scale the vector
+ * @return Itself
*/
Vector2& operator*=(float rhs)
{
* @brief Division operator.
*
* @since_tizen 2.4
- * @param[in] rhs the vector to divide
+ * @param[in] rhs The vector to divide
* @return A vector containing the result of the division
*/
Vector2 operator/(const Vector2& rhs) const
* @brief Division assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs the vector to divide
- * @return itself
+ * @param[in] rhs The vector to divide
+ * @return Itself
*/
Vector2& operator/=(const Vector2& rhs)
{
* @brief Division assignment operator.
*
* @since_tizen 2.4
- * @param[in] rhs the float value to scale the vector by
- * @return itself
+ * @param[in] rhs The float value to scale the vector by
+ * @return Itself
*/
Vector2& operator/=(float rhs)
{
*
* @since_tizen 2.4
* @param[in] rhs The vector to test against
- * @return true if the vectors are equal
+ * @return True if the vectors are equal
*/
bool operator==(const Vector2& rhs) const;
*
* @since_tizen 2.4
* @param[in] rhs The vector to test against
- * @return true if the vectors are not equal
+ * @return True if the vectors are not equal
*/
bool operator!=(const Vector2& rhs) const
{
*
* Asserts if index is out of range. Should be 0 or 1
* @since_tizen 2.4
- * @param[in] index Subscript
+ * @param[in] index Subscript index
* @return The float at the given index
*/
const float& operator[](const unsigned int index) const
* @brief Returns the length of the vector.
*
* @since_tizen 2.4
- * @return the length of the vector
+ * @return The length of the vector
*/
float Length() const;
* This is more efficient than Length() for threshold
* testing as it avoids the use of a square root.
* @since_tizen 2.4
- * @return the length of the vector squared.
+ * @return The length of the vector squared.
*/
float LengthSquared() const;
* @brief Clamps the vector between minimum and maximum vectors.
*
* @since_tizen 2.4
- * @param [in] min the minimum vector
- * @param [in] max the maximum vector
+ * @param [in] min The minimum vector
+ * @param [in] max The maximum vector
*/
void Clamp( const Vector2& min, const Vector2& max );
* 0: x (or width)
* 1: y (or height)
* @since_tizen 2.4
- * @return the vector contents as an array of 2 floats.
- * @note inlined for performance reasons (generates less code than a function call)
+ * @return The vector contents as an array of 2 floats.
+ * @note Inlined for performance reasons (generates less code than a function call)
*/
const float* AsFloat() const {return &x;}
* 0: x (or width)
* 1: y (or height)
* @since_tizen 2.4
- * @return the vector contents as an array of 2 floats.
- * @note inlined for performance reasons (generates less code than a function call)
+ * @return The vector contents as an array of 2 floats.
+ * @note Inlined for performance reasons (generates less code than a function call)
*/
float* AsFloat() {return &x;}
* @brief Clamps each of vector v's components between minimum and maximum values.
*
* @since_tizen 2.4
- * @param [in] v a vector
- * @param [in] min the minimum value
- * @param [in] max the maximum value
+ * @param [in] v A vector
+ * @param [in] min The minimum value
+ * @param [in] max The maximum value
* @return a vector containing the clamped components of v
*/
DALI_IMPORT_API Vector2 Clamp( const Vector2& v, const float& min, const float& max );