diff --git a/olcUTIL_Geometry2D.h b/olcUTIL_Geometry2D.h index cedf02a..5a5e145 100644 --- a/olcUTIL_Geometry2D.h +++ b/olcUTIL_Geometry2D.h @@ -880,7 +880,7 @@ namespace olc::utils::geom2d // closest(ray,p) // Returns closest point on ray to point template - inline olc::v_2d closest(const ray& r, const olc::v_2d& p) + inline olc::v_2d closest(const ray& q, const olc::v_2d& p) { // TODO: implement return p; @@ -940,7 +940,7 @@ namespace olc::utils::geom2d // closest(r,c) // Returns closest point on rectangle to circle template - inline olc::v_2d closest(const rect& r, const circle& l) + inline olc::v_2d closest(const rect& r, const circle& c) { // TODO: return {}; @@ -949,7 +949,7 @@ namespace olc::utils::geom2d // closest(c,c) // Returns closest point on circle to circle template - inline olc::v_2d closest(const circle& c, const circle& l) + inline olc::v_2d closest(const circle& c1, const circle& c2) { // TODO: return {}; @@ -958,7 +958,7 @@ namespace olc::utils::geom2d // closest(t,c) // Returns closest point on triangle to circle template - inline olc::v_2d closest(const triangle& r, const circle& l) + inline olc::v_2d closest(const triangle& t, const circle& c) { // TODO: return {}; @@ -970,7 +970,7 @@ namespace olc::utils::geom2d // closest(l,t) // Returns closest point on line to triangle template - inline olc::v_2d closest(const line& l, const triangle& c) + inline olc::v_2d closest(const line& l, const triangle& t) { // TODO: return {}; @@ -979,7 +979,7 @@ namespace olc::utils::geom2d // closest(r,t) // Returns closest point on rectangle to triangle template - inline olc::v_2d closest(const rect& r, const triangle& l) + inline olc::v_2d closest(const rect& r, const triangle& t) { // TODO: return {}; @@ -988,7 +988,7 @@ namespace olc::utils::geom2d // closest(c,t) // Returns closest point on circle to triangle template - inline olc::v_2d closest(const circle& c, const triangle& l) + inline olc::v_2d closest(const circle& c, const triangle& t) { // TODO: return {}; @@ -997,7 +997,7 @@ namespace olc::utils::geom2d // closest(t,t) // Returns closest point on triangle to triangle template - inline olc::v_2d closest(const triangle& r, const triangle& l) + inline olc::v_2d closest(const triangle& t1, const triangle& t2) { // TODO: return {}; @@ -1208,9 +1208,9 @@ namespace olc::utils::geom2d // contains(c,l) // Check if circle contains line segment template - inline constexpr bool contains(const circle& c1, const line& l) + inline constexpr bool contains(const circle& c, const line& l) { - return contains(c1, l.start) && contains(c1, l.end); + return contains(c, l.start) && contains(c, l.end); } // contains(t,l)