Tizen Native API
Dali::Radian Struct Reference

An angle in radians. More...

Public Member Functions

 Radian ()
 Default constructor, initialises to 0.
 Radian (float value)
 Create an angle in radians.
 Radian (Degree degree)
 Create an angle in radians from an angle in degrees.
Radianoperator= (float value)
 Assign an angle from a float value.
Radianoperator= (Degree degree)
 Assign 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

Constructor & Destructor Documentation

Default constructor, initialises to 0.

Since :
2.4
Dali::Radian::Radian ( float  value) [explicit]

Create an angle in radians.

Since :
2.4
Parameters:
[in]valueThe initial value in radians.

Create an angle in radians from an angle in degrees.

Since :
2.4
Parameters:
[in]degreeThe initial value in degrees.

Member Function Documentation

Dali::Radian::operator float ( ) const

Conversion to float.

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

Assign an angle from a float value.

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

Assign an angle from a Degree value.

Since :
2.4
Parameters:
[in]degreeThe value in degrees.
Returns:
A reference to this