]> Shamusworld >> Repos - architektonas/blob - src/connection.cpp
Added line-to-circle intersection code.
[architektonas] / src / connection.cpp
1 //
2 // connection.cpp: Object connection support
3 //
4 // Part of the Architektonas Project
5 // (C) 2013 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
7 //
8 // JLH = James Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  ------------------------------------------------------------
12 // JLH  03/14/2013  Created this file
13 //
14
15 #include "connection.h"
16
17
18 Connection::Connection(Object * o/*= NULL*/, double param/*= 0*/)
19 {
20         object = o;
21         t = param;
22 }
23
24
25 Connection::~Connection()
26 {
27 }
28
29
30 // Check for equality
31 bool Connection::operator==(Connection const c)
32 {
33         return (object == c.object) && (t == c.t);
34 }
35
36
37 // Check for inequality
38 bool Connection::operator!=(Connection const c)
39 {
40         return (object != c.object) || (t != c.t);
41 }
42