Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions episodes/10-defensive.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ representing the lower left and upper right corners of the rectangle.
In order to do some calculations,
we need to normalize the rectangle so that the lower left corner is at the origin
and the longest side is 1.0 units long.

![](fig/rectangle_normalization.svg){alt='Rectangle normalization follows one of two paths depending on which side is longer.'}

This function does that,
but checks that its input is correctly formatted and that its result makes sense:

Expand Down
255 changes: 255 additions & 0 deletions episodes/fig/rectangle_normalization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading