summaryrefslogtreecommitdiffstats
path: root/kig/macros/vector_difference.kigt
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kig/macros/vector_difference.kigt
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/macros/vector_difference.kigt')
-rw-r--r--kig/macros/vector_difference.kigt31
1 files changed, 31 insertions, 0 deletions
diff --git a/kig/macros/vector_difference.kigt b/kig/macros/vector_difference.kigt
new file mode 100644
index 00000000..c1b3be4b
--- /dev/null
+++ b/kig/macros/vector_difference.kigt
@@ -0,0 +1,31 @@
+<!DOCTYPE KigMacroFile>
+<KigMacroFile Number="1" Version="0.9.0" >
+ <Macro>
+ <Name>Vector Difference</Name>
+ <Description>Construct the vector difference of two vectors.</Description>
+ <ActionName>objects_new_vectordifference</ActionName>
+ <IconFileName>vectordifference</IconFileName>
+ <Construction>
+ <input requirement="vector" id="1">
+ <UseText>Construct the vector difference of this vector and another one.</UseText>
+ <SelectStatement>Select the first of the two vectors of which you want to construct the difference...</SelectStatement>
+ </input>
+ <input requirement="vector" id="2">
+ <UseText>Construct the vector difference of the other vector and this one.</UseText>
+ <SelectStatement>Select the other of the two vectors of which you want to construct the difference...</SelectStatement>
+ </input>
+ <input requirement="point" id="3">
+ <UseText>Construct the vector difference starting at this point.</UseText>
+ <SelectStatement>Select the point to construct the difference vector in...</SelectStatement>
+ </input>
+ <intermediate action="fetch-property" property="vector-opposite" id="4" >
+ <arg>2</arg>
+ </intermediate>
+ <result action="calc" type="VectorSum" id="5" >
+ <arg>1</arg>
+ <arg>4</arg>
+ <arg>3</arg>
+ </result>
+ </Construction>
+ </Macro>
+</KigMacroFile>