File: Trans_Mul.xml

package info (click to toggle)
openclonk 7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 145,828 kB
  • ctags: 33,094
  • sloc: cpp: 163,891; ansic: 82,846; xml: 29,876; python: 1,203; php: 767; makefile: 138; sh: 77
file content (48 lines) | stat: -rwxr-xr-x 2,128 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
  SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
  <func>
    <title>Trans_Mul</title>
    <category>Arithmetics</category>
    <version>5.1 OC</version>
    <syntax>
      <rtype>array</rtype>
      <params>
        <param>
          <type>array</type>
          <name>first</name>
          <desc>First matrix as returned by <funclink>Trans_Identity</funclink>, <funclink>Trans_Translate</funclink>, <funclink>Trans_Rotate</funclink> or <funclink>Trans_Scale</funclink>.</desc>
        </param>
        <param>
          <type>array</type>
          <name>second</name>
          <desc>Second matrix.</desc>
        </param>
        <param>
          <type>array</type>
          <name>...</name>
          <desc>An arbitrary number of other matrices.</desc>
          <optional />
        </param>
      </params>
    </syntax>
    <desc>Multiplies two or more 3x4 transformation matrices in the given order. This way the effects of more than one transformation can be combined. The result can be used as a transformation for <funclink>AttachMesh</funclink> or for the "PictureTransformation" or "MeshTransformation" properties (see <emlink href="definition/meshes.html#Picture">Meshes</emlink>).</desc>
    <examples>
      <example>
        <code><funclink>this</funclink>[&quot;PictureTransformation&quot;] = <funclink>Trans_Mul</funclink>(<funclink>Trans_Translate</funclink>(7000), <funclink>Trans_Rotate</funclink>(20, 0, 1, 0));</code>
        <text>Rotates the picture graphics of the calling object by 20 degrees around the Y axis and afterwards displaces it by 7 units into Z direction towards the camera.</text>
      </example>
    </examples>
    <related>
      <funclink>Trans_Identity</funclink>
      <funclink>Trans_Translate</funclink>
      <funclink>Trans_Rotate</funclink>
      <funclink>Trans_Scale</funclink>
      <funclink>AttachMesh</funclink>
      <funclink>SetAttachTransform</funclink>
    </related>
  </func>
  <author>Clonk-Karl</author><date>2010-04</date>
</funcs>