pub fn apply_bernstein_transform(
points: &[[f64; 3]],
deltas: &[[f64; 3]],
resolution: &[usize; 3],
) -> Result<Vec<[f64; 3]>>Expand description
Apply a Bernstein transform to a set of 3D points.
§Arguments
points: A vector of points in 3D space, represented as arrays of f64 numbers[x, y, z].deltas: A vector of delta shifts for each point, also in 3D[dx, dy, dz].resolution: An array specifying the resolution in each dimension[res_x, res_y, res_z].
§Returns
Result<Vec<[f64; 3]>, String>: A Result containing either: A vector of transformed points in the same format as the input (Ok) An error message if something goes wrong (Err)