X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fline.cpp;h=0884d9028b3c9f4a9140abdf87582bf492eb7ee0;hb=5446001bd9adfd9f4787f5de5a2a7afd8d7cdb5a;hp=2459636024e8be411f17f6d8994c037b27ae7d68;hpb=7b7c8ec7d7f5379e09a8b7392f465f41639b0c79;p=architektonas diff --git a/src/line.cpp b/src/line.cpp index 2459636..0884d90 100644 --- a/src/line.cpp +++ b/src/line.cpp @@ -360,6 +360,18 @@ about keeping track of old states... state = oldState; } +// Check to see if the point passed in coincides with any we have. If so, return a +// pointer to it; otherwise, return NULL. +/*virtual*/ Vector * Line::GetPointAt(Vector v) +{ + if (v == position) + return &position; + else if (v == endpoint) + return &endpoint; + + return 0; +} + #if 0 void Line::SetDimensionOnPoint1(Dimension * dimension) {