curve
attribute__all__= ['Curve', 'SlideLike', 'Waypoint']func_collinear(a, b, c) -> boolWhether b lies exactly on segment a -> c on both the x and h axes (integers).
Uses integer cross-products so the test is exact: dropping such a b leaves Margrete's
linear reconstruction unchanged (a lossless simplification).
paramaWaypointparambWaypointparamcWaypointReturns
boolfunc_is_linear(reals) -> boolWhether every real sample lies on the chord between the endpoints (both axes).
paramrealslist[tuple[int, float, float]]Returns
boolfunc_sample_segment(t0, x0, h0, t1, x1, h1, ease_x, ease_h) -> tuple[Waypoint, ...]Quantize an eased segment to integer waypoints driven by the smaller-delta axis.
paramt0intparamx0intparamh0intparamt1intparamx1intparamh1intparamease_xEasingparamease_hEasingReturns
tuple[margrete_rpc.chart.util.curve.Waypoint, ...]func_stored_height(obj) -> intRead the raw stored height, including from ground notes without public h.
paramobjobjectReturns
int