Margrete RPC

curve

attribute__all__
= ['Curve', 'SlideLike', 'Waypoint']
func_collinear(a, b, c) -> bool

Whether 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).

paramaWaypoint
parambWaypoint
paramcWaypoint

Returns

bool
func_is_linear(reals) -> bool

Whether every real sample lies on the chord between the endpoints (both axes).

paramrealslist[tuple[int, float, float]]

Returns

bool
func_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.

paramt0int
paramx0int
paramh0int
paramt1int
paramx1int
paramh1int
paramease_xEasing
paramease_hEasing

Returns

tuple[margrete_rpc.chart.util.curve.Waypoint, ...]
func_stored_height(obj) -> int

Read the raw stored height, including from ground notes without public h.

paramobjobject

Returns

int