Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Functions§

barycentric_2d
Compute the barycentric coordinates (u, v, w) of point p with respect to triangle (a, b, c) in 2-D.
barycentric_interp_2d
Interpolate a scalar at point p inside triangle (a, b, c) with values (fa, fb, fc) using barycentric coordinates.
barycentric_rational
Floater-Hormann family of barycentric rational interpolants.
bicubic
Bicubic interpolation using a 4×4 stencil on a regular 2-D grid.
bilinear
Bilinear interpolation on a unit square.
bilinear_grid
Bilinear interpolation on a regular 2-D grid of values.
catmull_rom
Catmull-Rom segment between p1 and p2 using finite-difference tangents derived from p0 and p3.
dist3
Helper: distance between two 3-D points.
hermite
Cubic Hermite interpolation (scalar).
hermite3
Cubic Hermite interpolation (3-vector).
hermite_deriv
Derivative of cubic Hermite at local parameter t.
lerp
Linear interpolation between two scalars.
lerp3
Component-wise linear interpolation between two 3-vectors.
monotone_cubic
Monotone cubic (PCHIP / Fritsch-Carlson) interpolation.
natural_neighbor_interp
Natural neighbor interpolation using a simplified area-based Sibson weight.
nurbs_evaluate_with_derivative
Evaluate a NURBS curve using the Cox-de Boor algorithm and return the point together with its first derivative via automatic differentiation.
quat_dot
Dot product of two quaternions.
quat_nlerp
Normalized linear interpolation (nlerp) of two quaternions.
quat_norm
Euclidean norm of a quaternion.
quat_normalize
Normalize a quaternion to unit length.
quat_slerp
Spherical linear interpolation (slerp) between two unit quaternions.
quat_squad
SQUAD — smooth quaternion spline interpolation.
rbf_fit
Fit RBF weights by solving the interpolation system Φ w = f.
rbf_interpolate
Evaluate an RBF interpolant at query point x.
rbf_thin_plate_spline
Thin-plate spline RBF: r² · ln(r) (convention: 0 at r=0).
rbf_tps_evaluate
Evaluate a 2-D RBF interpolant using the thin-plate spline kernel.
rbf_tps_fit
Fit a 2-D RBF interpolant with the thin-plate spline kernel.
trilinear
Trilinear interpolation on a unit cube.
trilinear_grid
Trilinear interpolation on a regular 3-D grid.