gaussian_smooth_2d
Functiongaussian_smooth_2d(
func: Callable[[float], tuple[float, float]],
smoothness: float = 0.5,
samples: int = 256,
t_range: tuple[float, float] = (0.0, 1.0)
) -> Callable[[float], tuple[float, float]]
Gaussian-smooth a 2D function. Same as gaussian_smooth but for (x, y).
Smooths x and y channels independently.
Parameters
-
func - Target function returning (x, y) to smooth.
-
smoothness - 0.0 = no smoothing (original), 1.0 = heavy smoothing.
-
samples - Number of sample points (higher = more accurate).
-
t_range - Domain to sample over.