From cda37b6e48d3c3a64d8f5c83941d15a088a0e0ea Mon Sep 17 00:00:00 2001 From: ShisatoYano Date: Thu, 22 Aug 2024 15:23:57 +0000 Subject: [PATCH] add function to interpolate x-y input points --- src/components/course/cubic_spline_course/cubic_spline_2d.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/course/cubic_spline_course/cubic_spline_2d.py b/src/components/course/cubic_spline_course/cubic_spline_2d.py index a85ade4..1399bbb 100644 --- a/src/components/course/cubic_spline_course/cubic_spline_2d.py +++ b/src/components/course/cubic_spline_course/cubic_spline_2d.py @@ -21,6 +21,9 @@ def __init__(self, x_points, y_points): self.sx = CubicSpline(self.s, x_points) self.sy = CubicSpline(self.s, y_points) + def calc_interpolated_xy(self, s): + pass + def _calc_base_points(self, x_points, y_points): dx = np.diff(x_points) dy = np.diff(y_points)