raygeo.geo.shape.arc
Arc geometry queries and conversions.
Provides bounding rectangle computation, intersection tests (arc-rect, arc-circle, arc-polygons), arc linearization into line segments for rendering or further processing, angle utilities (normalize, direction, containment), and arc midpoint / closest-point lookups.
Functions
does_arc_intersect_circle()
does_arc_intersect_circle(arc_start: Point, arc_end: Point, arc_center: Point, clockwise: bool, circle_center: Point, circle_radius: float) -> bool
Check if an arc intersects a circle.
Returns: True if the arc intersects the circle.
| Parameter | Type | Description |
|---|---|---|
arc_start | Point | Arc start point (x, y). |
arc_end | Point | Arc end point (x, y). |
arc_center | Point | Arc center point (x, y). |
clockwise | bool | Whether the arc is clockwise. |
circle_center | Point | Circle center (x, y). |
circle_radius | float | Circle radius. |
| Returns | bool |
does_arc_intersect_rect()
does_arc_intersect_rect(arc_start: Point, arc_end: Point, arc_center: Point, clockwise: bool, rect: Rect) -> bool
Check if an arc intersects a rectangle.
Returns: True if the arc intersects the rectangle.
| Parameter | Type | Description |
|---|---|---|
arc_start | Point | Arc start point (x, y). |
arc_end | Point | Arc end point (x, y). |
arc_center | Point | Arc center point (x, y). |
clockwise | bool | Whether the arc is clockwise. |
rect | Rect | Rectangle (x_min, y_min, x_max, y_max). |
| Returns | bool |