Skip to content
Open
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
2 changes: 1 addition & 1 deletion chapters/intro_to_graphics/chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ Let's add points to our polyline in `update()`:

```cpp
if (leftMouseButtonPressed) {
ofPoint mousePos(ofGetMouseX(), ofGetMouseY());
ofPoint mousePos(ofGetMouseX(), ofGetMouseY()); // the "ofPoint" here is still being shown as "ofVec2f" on the website, for some reason.
if (lastPoint.distance(mousePos) >= minDistance) {
// a.distance(b) calculates the Euclidean distance between point a and b. It's
// the length of the straight line distance between the points.
Expand Down