From 3fb7711dd09975c83de5995d5247cbdd8d150def Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 22 Mar 2013 19:30:07 +0000 Subject: Add debugging option to Select tool Selecting edges and/or nodes and pressing shift-d will print info about them to the console. --- tikzit/src/common/Edge.m | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tikzit/src/common/Edge.m') diff --git a/tikzit/src/common/Edge.m b/tikzit/src/common/Edge.m index f9cb9b5..cabf860 100644 --- a/tikzit/src/common/Edge.m +++ b/tikzit/src/common/Edge.m @@ -228,6 +228,11 @@ return NSMakePoint(mid.x - (mid.y - midTan.y), mid.y + (mid.x - midTan.x)); } +- (NSPoint)headTan { + [self updateControls]; + return headTan; +} + - (NSPoint)leftHeadNormal { [self updateControls]; return NSMakePoint(headTan.x + (head.y - headTan.y), headTan.y - (head.x - headTan.x)); @@ -238,6 +243,11 @@ return NSMakePoint(headTan.x - (head.y - headTan.y), headTan.y + (head.x - headTan.x)); } +- (NSPoint)tailTan { + [self updateControls]; + return tailTan; +} + - (NSPoint)leftTailNormal { [self updateControls]; return NSMakePoint(tailTan.x + (tail.y - tailTan.y), tailTan.y - (tail.x - tailTan.x)); -- cgit v1.2.3