1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 20:11:59 +02:00

full regeneration

This commit is contained in:
Pomax
2021-02-28 12:28:41 -08:00
parent d8fab98ec7
commit 45394f6d0f
329 changed files with 3135 additions and 2361 deletions

View File

@@ -7,14 +7,14 @@ Bézier curves are the result of [linear interpolations](https://en.wikipedia.or
If we know the distance between those two points, and we want a new point that is, say, 20% the distance away from the first point (and thus 80% the distance away from the second point) then we can compute that really easily:
\[
Given \left (
\textit{Given} \left (
\begin{aligned}
p_1 &= some~point \\
p_2 &= some~other~point \\
distance &= (p_2 - p_1) \\
ratio &= \frac{percentage}{100} \\
p_1 &= \textit{some point} \\
p_2 &= \textit{some other point} \\
\textit{distance} &= (p_2 - p_1) \\
\textit{ratio} &= \frac{\textit{percentage}}{100} \\
\end{aligned}
\right ),~our~new~point = p_1 + distance \cdot ratio
\right ),~\textit{our new point} = p_1 + \textit{distance} \cdot \textit{ratio}
\]
So let's look at that in action: the following graphic is interactive in that you can use your up and down arrow keys to increase or decrease the interpolation ratio, to see what happens. We start with three points, which gives us two lines. Linear interpolation over those lines gives us two points, between which we can again perform linear interpolation, yielding a single point. And that point —and all points we can form in this way for all ratios taken together— form our Bézier curve: