Tizen Native API  6.0
Dali::Radian Struct Reference

An angle in radians. More...

Public Member Functions

 Radian ()
 Default constructor, initializes to 0.
 Radian (float value)
 Creates an angle in radians.
 Radian (Degree degree)
 Creates an angle in radians from an angle in degrees.
Radianoperator= (float value)
 Assigns an angle from a float value.
Radianoperator= (Degree degree)
 Assigns an angle from a Degree value.
 operator float () const
 Conversion to float.

Public Attributes

float radian
 The value in radians.

Detailed Description

An angle in radians.

This reduces ambiguity when using methods which accept angles in degrees or radians.

Since:
2.4, DALi version 1.0.0

Constructor & Destructor Documentation

Default constructor, initializes to 0.

Since:
2.4, DALi version 1.0.0
Dali::Radian::Radian ( float  value) [explicit]

Creates an angle in radians.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]valueThe initial value in radians

Creates an angle in radians from an angle in degrees.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]degreeThe initial value in degrees

Member Function Documentation

Dali::Radian::operator float ( ) const

Conversion to float.

Since:
2.4, DALi version 1.0.0
Returns:
The float value of this Radian
Radian& Dali::Radian::operator= ( float  value)

Assigns an angle from a float value.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]valueFloat value in radians
Returns:
A reference to this
Radian& Dali::Radian::operator= ( Degree  degree)

Assigns an angle from a Degree value.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]degreeThe value in degrees
Returns:
A reference to this