angle_from_centroid

Function
angle_from_centroid(vertex: Point2D, center: Point2D) -> float

Calculate angle of vertex from centroid in Svan2D coordinates

Svan2D uses: 0° = North (up), 90° = East (right), clockwise

Parameters

vertex
(x, y) position
center
(cx, cy) centroid position

Returns

Angle in radians (0 to 2π)