Skip to main content

Crate flux_ffi

Crate flux_ffi 

Source

Functions§

flux_constraint_check
Count how many constraints are violated: values[i] > bounds[i]
flux_deadband_filter
Deadband filter: return value if |value - baseline| > threshold, else baseline
flux_eisenstein_norm
Eisenstein integer norm: |a + bω|² = a² - ab + b²
flux_holonomy_check
Holonomy check: sum of transforms should be identity (zero for our encoding)
flux_is_rigid
Check if (vertices, edges) satisfies Laman rigidity condition
flux_laman_edges
Laman graph edges: 2n - 3 for n >= 2
flux_manhattan_distance
Manhattan (L1) distance between two integer vectors
flux_pythagorean48_encode
Pythagorean 48-cell encoding: maps (x,y) to a lattice index
flux_spline_interpolate
Simple linear interpolation along control points at parameter t ∈ [0,1]