Pango.Gravity.to_rotation
Description: Reference for Pango.Gravity.to_rotation

### Function

# Pango Gravityto_rotation

#### Declaration [src]

    double
    pango_gravity_to_rotation (
      PangoGravity gravity
    )

#### Description [src]

Converts a `PangoGravity` value to its natural rotation in radians.

Note that `pango_matrix_rotate()` takes angle in degrees, not radians. So, to call [method@Pango.Matrix,rotate] with the output of this function you should multiply it by (180. / G_PI).

Available since: | 1.16

#### Parameters

`gravity` | `PangoGravity`
| Gravity to query, should not be `PANGO_GRAVITY_AUTO`.

#### Return value

Returns: | `double`
| The rotation value corresponding to `gravity`.