getRotation

fun getRotation(path: Path, direction: PathDirection): <Error class: unknown class>

Gets the direction of the tangent at a given point.

This is a convenience variant of method@Gsk.PathPoint.get_tangent that returns the angle between the tangent and the X axis. The angle can e.g. be used in ../gtk4/method.Snapshot.rotate.html.

Return

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

Since

4.14

Parameters

path

the path that @point is on

direction

the direction for which to return the rotation