From 94666535ea36bb2426a68de54df5beb1293944b5 Mon Sep 17 00:00:00 2001 From: Mitch Shiotani Date: Sun, 21 Jul 2019 13:56:25 +0900 Subject: [PATCH 1/2] Update chapter.md --- chapters/intro_to_graphics/chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/intro_to_graphics/chapter.md b/chapters/intro_to_graphics/chapter.md index 4ff2ed49..21e692e6 100644 --- a/chapters/intro_to_graphics/chapter.md +++ b/chapters/intro_to_graphics/chapter.md @@ -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. From 37e27b8c380bc0664981ca836a4592212f3b3e37 Mon Sep 17 00:00:00 2001 From: Mitch Shiotani Date: Sun, 21 Jul 2019 14:01:23 +0900 Subject: [PATCH 2/2] Update chapter.md No code changed; just wanted to point out that this specific part has not been reflected on the book's website --- chapters/intro_to_graphics/chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/intro_to_graphics/chapter.md b/chapters/intro_to_graphics/chapter.md index 21e692e6..fc6705e7 100644 --- a/chapters/intro_to_graphics/chapter.md +++ b/chapters/intro_to_graphics/chapter.md @@ -514,7 +514,7 @@ Let's add points to our polyline in `update()`: ```cpp if (leftMouseButtonPressed) { - ofPoint mousePos(ofGetMouseX(), ofGetMouseY()); // the "ofPoint" here is still being shown as "ofVec2f" on the website, for some reason + 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.