Gravity.toRotation

double toRotation(pango.types.Gravity gravity)

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).

Parameters

gravitygravity to query, should not be [pango.types.Gravity.Auto]

Returns

the rotation value corresponding to gravity.