]> Shamusworld >> Repos - architektonas/blobdiff - src/connection.cpp
Added line-to-circle intersection code.
[architektonas] / src / connection.cpp
index 2dd8e2466e5e77b6d132c72acc9726f4efb64d24..8e122344c04bcca446958e0156d0a90e3f9c1585 100644 (file)
@@ -8,7 +8,7 @@
 // JLH = James Hammons <jlhamm@acm.org>
 //
 // Who  When        What
-// ---  ----------  -------------------------------------------------------------
+// ---  ----------  ------------------------------------------------------------
 // JLH  03/14/2013  Created this file
 //
 
@@ -26,3 +26,17 @@ Connection::~Connection()
 {
 }
 
+
+// Check for equality
+bool Connection::operator==(Connection const c)
+{
+       return (object == c.object) && (t == c.t);
+}
+
+
+// Check for inequality
+bool Connection::operator!=(Connection const c)
+{
+       return (object != c.object) || (t != c.t);
+}
+