PathPoint.getRotation

float getRotation(gsk.path.Path path, gsk.types.PathDirection direction)

Gets the direction of the tangent at a given point.

This is a convenience variant of [gsk.path_point.PathPoint.getTangent] that returns the angle between the tangent and the X axis. The angle can e.g. be used in [[gtk.snapshot.Snapshot.rotate]](../gtk4/method.Snapshot.rotate.html).

Parameters

paththe path that point is on
directionthe direction for which to return the rotation

Returns

the angle between the tangent and the X axis, in degrees