Skip to content

Commit

Permalink
HW2 Finished Tasks 1 to 5. Overview Unfinished.
Browse files Browse the repository at this point in the history
  • Loading branch information
whydarren-6uom committed Feb 27, 2024
1 parent 78816e8 commit 301f941
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions hw2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,18 @@ <h3>Implementation</h3>
<span style="background-color: rgb(220, 220, 217)"
>std::vector&lt;Vector2D&gt; controlPoints
</span>
of length n, applied the function
of length n, applied the function \[ p_i' = \text{lerp}(p_i, p_{i+1}, t)
= (1 - t) * p_i + t * p_{i+1} \] to every point
<span style="background-color: rgb(220, 220, 217)"
>\[ p_i' = \text{lerp}(p_i, p_{i+1}, t) = (1 - t) * p_i + t * p_{i+1}
\]</span
>
to every point
<span style="background-color: rgb(220, 220, 217)"
>&lt;Vector2D&gt; p_i and p_{i_1}</span
>&lt;Vector2D&gt; p_i and p_i_1</span
>, returning a new
<span style="background-color: rgb(220, 220, 217)"
>&lt;Vector2D&gt; control point curr</span
>. We will then push back
<span style="background-color: rgb(220, 220, 217)">curr</span> to a new
>&lt;Vector2D&gt; controlPoint curr</span
>. We will then push back "curr" to a new
<span style="background-color: rgb(220, 220, 217)"
>std::vector &lt;Vector2D&gt; nextlevel
</span>
of length p - 1. Finally, we will return
<span style="background-color: rgb(220, 220, 217)">nextlevel</span>.
of length p - 1. Finally, we will return "nextlevel".
</p>

<h3>Screenshots</h3>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2>
<br /><br />
<a href="/hw1/index.html">Homework 1: Rasterizer</a>
<br /><br />
<a href="/hw2/index.html">Homework 2</a>
<a href="/hw2/index.html">Homework 2: Meshedit</a>
<br /><br />
<a href="/hw3/index.html">Homework 3</a>
<br /><br />
Expand Down

0 comments on commit 301f941

Please sign in to comment.