[closed] Unit 5 video 5 Path Smoothing - are smoothing equations right?

In the video the smoothing equations are:

alt text

However in the code Andy gives for the solution (and code people have posted in the forum) the code is adding the altered values:
alt text

Notice those newpath += expressions

Is the video wrong then should those equations be:

yi = yi + alpha(xi - yi)
yi = yi + beta(yi+1 + yi-1 - 2yi)

Notice the + and not minus signs!

asked 19 Mar '12, 08:50

bhrgunatha%20373's gravatar image

bhrgunatha 373
4711415
accept rate: 33%

closed 19 Mar '12, 10:12

The question has been closed for the following reason "Problem is outdated" by bhrgunatha 373 19 Mar '12, 10:12


2 Answers:

Yes, if you watch the video to the end, there is an addition where Andy corrects those and gives some hint on the solution.

That is to say: the correct version is with the + sign

link

answered 19 Mar '12, 08:53

Anna-Chiara%20Bellini's gravatar image

Anna-Chiara ...
5.2k103175

edited 19 Mar '12, 08:54

Yes, and in the end of that video Andy said exactly that - that there are errors and what the correct formulas are. How did you manage to miss that ? :-)

link

answered 19 Mar '12, 08:54

Gundega's gravatar image

Gundega ♦♦
44.1k70170315

1

I download the video from youtube, so I can watch them offline. The version I downloaded this morning didn't have Andy's comments, they must have re-uploaded that video.

(19 Mar '12, 09:47) bhrgunatha 373 bhrgunatha%20373's gravatar image

@bhrgunatha aah, that explains it!. They must have fixed it in the last moment (or actually after that). Can you close the question, as it's not relevant anymore, please?

(19 Mar '12, 09:49) Gundega ♦♦ Gundega's gravatar image

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5,188
×2,217
×577
×81

Asked: 19 Mar '12, 08:50

Seen: 395 times

Last updated: 19 Mar '12, 10:12