Gravity.toRotation

Converts a pango.types.Gravity value to its natural rotation in radians.

Note that pango.matrix.Matrix.rotate takes angle in degrees, not radians. So, to call pango.matrix.Matrix with the output of this function you should multiply it by (180. / G_PI).

struct Gravity
static
double
toRotation

Parameters

gravity pango.types.Gravity

gravity to query, should not be pango.types.Gravity.Auto

Return Value

Type: double

the rotation value corresponding to gravity.