Skip to content

C lookup and access

Lookups clamp finite coordinates; accessors preserve the stored scalar type.

table_curve_lookup

c
table_status_t table_curve_lookup(const table_view_t *view, float x, float *output);

Looks up a clamped curve value.

view Valid curve view. x Finite X coordinate. output Interpolated result written only on success. Operation status.

table_map_lookup

c
table_status_t table_map_lookup(const table_view_t *view, float x, float y, float *output);

Looks up a clamped map value.

view Valid map view. x Finite X coordinate. y Finite Y coordinate. output Bilinearly interpolated result written only on success. Operation status.

table_get_x

c
table_status_t table_get_x(const table_view_t *view, size_t index, table_scalar_t *value);

Reads an X-axis point.

view Valid view. index X index. value Typed value written only on success. Operation status.

table_get_y

c
table_status_t table_get_y(const table_view_t *view, size_t index, table_scalar_t *value);

Reads a Y-axis point.

view Valid map view. index Y index. value Typed value written only on success. Operation status.

table_curve_get_cell

c
table_status_t table_curve_get_cell(const table_view_t *view, size_t x_index, table_scalar_t *value);

Reads a curve cell.

view Valid curve view. x_index X index. value Typed value written only on success. Operation status.

table_map_get_cell

c
table_status_t table_map_get_cell(const table_view_t *view, size_t x_index, size_t y_index, table_scalar_t *value);

Reads a map cell.

view Valid map view. x_index X index. y_index Y index. value Typed value written only on success. Operation status.

Released under the MIT Licence.