summaryrefslogtreecommitdiffstats
path: root/kig/macros/segment_axis.kigt
diff options
context:
space:
mode:
Diffstat (limited to 'kig/macros/segment_axis.kigt')
-rw-r--r--kig/macros/segment_axis.kigt25
1 files changed, 25 insertions, 0 deletions
diff --git a/kig/macros/segment_axis.kigt b/kig/macros/segment_axis.kigt
new file mode 100644
index 00000000..e86b90cf
--- /dev/null
+++ b/kig/macros/segment_axis.kigt
@@ -0,0 +1,25 @@
+<!DOCTYPE KigMacroFile>
+<KigMacroFile Number="1" Version="0.6.1" >
+ <Macro>
+ <Name>Segment Axis</Name>
+ <Description>The perpendicular line through a given segment's mid point.</Description>
+ <ActionName>objects_new_segment_axis</ActionName>
+ <IconFileName>segmentaxis</IconFileName>
+ <Construction>
+ <input requirement="segment" id="1">
+ <UseText>Construct the axis of this segment</UseText>
+ <SelectStatement>Select the segment of which you want to draw the axis...</SelectStatement>
+ </input>
+ <intermediate action="fetch-property" property="mid-point" id="2" >
+ <arg>1</arg>
+ </intermediate>
+ <intermediate action="calc" type="Copy" id="3" >
+ <arg>2</arg>
+ </intermediate>
+ <result action="calc" type="LinePerpend" id="4" >
+ <arg>1</arg>
+ <arg>3</arg>
+ </result>
+ </Construction>
+ </Macro>
+</KigMacroFile>