moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / macros / vector_difference.kigt
blobc1b3be4b1a0339479670746382ca8c8000e0050a
1 <!DOCTYPE KigMacroFile>
2 <KigMacroFile Number="1" Version="0.9.0" >
3  <Macro>
4   <Name>Vector Difference</Name>
5   <Description>Construct the vector difference of two vectors.</Description>
6   <ActionName>objects_new_vectordifference</ActionName>
7   <IconFileName>vectordifference</IconFileName>
8   <Construction>
9    <input requirement="vector" id="1">
10     <UseText>Construct the vector difference of this vector and another one.</UseText>
11     <SelectStatement>Select the first of the two vectors of which you want to construct the difference...</SelectStatement>
12    </input>
13    <input requirement="vector" id="2">
14     <UseText>Construct the vector difference of the other vector and this one.</UseText>
15     <SelectStatement>Select the other of the two vectors of which you want to construct the difference...</SelectStatement>
16    </input>
17    <input requirement="point" id="3">
18     <UseText>Construct the vector difference starting at this point.</UseText>
19     <SelectStatement>Select the point to construct the difference vector in...</SelectStatement>
20    </input>
21    <intermediate action="fetch-property" property="vector-opposite" id="4" >
22     <arg>2</arg>
23    </intermediate>
24    <result action="calc" type="VectorSum" id="5" >
25     <arg>1</arg>
26     <arg>4</arg>
27     <arg>3</arg>
28    </result>
29   </Construction>
30  </Macro>
31 </KigMacroFile>