PathPoint.getRotation

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

class PathPoint
float
getRotation

Parameters

path gsk.path.Path

the path that point is on

direction gsk.types.PathDirection

the direction for which to return the rotation

Return Value

Type: float

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