コード例 #1
0
 private Point2 Smooth(Point2 previous, Point2 current)
 {
     return(new Point2
            (
                ExponentialSmoothing.Smooth(previous.X, current.X, Alpha),
                ExponentialSmoothing.Smooth(previous.Y, current.Y, Alpha)
            ));
 }
コード例 #2
0
 private Point3 Smooth(Point3 previous, Point3 current)
 {
     return(new Point3
            (
                ExponentialSmoothing.Smooth(previous.X, current.X, Alpha),
                ExponentialSmoothing.Smooth(previous.Y, current.Y, Alpha),
                ExponentialSmoothing.Smooth(previous.Z, current.Z, Alpha)
            ));
 }