rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / dot.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="dot">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2011</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>dot</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>dot</refname>\r
17 <refpurpose>calculate the dot product of two vectors</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>float <function>dot</function></funcdef>\r
23 <paramdef>genType <parameter>x</parameter></paramdef>\r
24 <paramdef>genType <parameter>y</parameter></paramdef>\r
25 </funcprototype>\r
26 <funcprototype>\r
27 <funcdef>double <function>dot</function></funcdef>\r
28 <paramdef>genDType <parameter>x</parameter></paramdef>\r
29 <paramdef>genDType <parameter>y</parameter></paramdef>\r
30 </funcprototype>\r
31 </funcsynopsis>\r
32 </refsynopsisdiv>\r
33 <refsect1 id="parameters"><title>Parameters</title>\r
34 <variablelist>\r
35 <varlistentry>\r
36 <term><parameter>x</parameter></term>\r
37 <listitem>\r
38 <para>\r
39 Specifies the first of two vectors\r
40 </para>\r
41 </listitem>\r
42 </varlistentry>\r
43 <varlistentry>\r
44 <term><parameter>y</parameter></term>\r
45 <listitem>\r
46 <para>\r
47 Specifies the second of two vectors\r
48 </para>\r
49 </listitem>\r
50 </varlistentry>\r
51 </variablelist>\r
52 </refsect1>\r
53 <refsect1 id="description"><title>Description</title>\r
54 <para>\r
55 <function>dot</function> returns the dot product of two vectors, <parameter>x</parameter> and <parameter>y</parameter>. i.e.,\r
56 <inlineequation><mml:math>\r
57 <mml:mi>x</mml:mi>\r
58 <mml:mo stretchy='false'>[</mml:mo>\r
59 <mml:mn>0</mml:mn>\r
60 <mml:mo stretchy='false'>]</mml:mo>\r
61 <mml:mo lspace='2px' rspace='2px'>&sdot;</mml:mo>\r
62 <mml:mi>y</mml:mi>\r
63 <mml:mo stretchy='false'>[</mml:mo>\r
64 <mml:mn>0</mml:mn>\r
65 <mml:mo stretchy='false'>]</mml:mo>\r
66 <mml:mo>+</mml:mo>\r
67 <mml:mi>x</mml:mi>\r
68 <mml:mo stretchy='false'>[</mml:mo>\r
69 <mml:mn>1</mml:mn>\r
70 <mml:mo stretchy='false'>]</mml:mo>\r
71 <mml:mo lspace='2px' rspace='2px'>&sdot;</mml:mo>\r
72 <mml:mi>y</mml:mi>\r
73 <mml:mo stretchy='false'>[</mml:mo>\r
74 <mml:mn>1</mml:mn>\r
75 <mml:mo stretchy='false'>]</mml:mo>\r
76 <mml:mo>+</mml:mo>\r
77 <mml:mo lspace='0px' form='infix'>...</mml:mo>\r
78 </mml:math></inlineequation>\r
79 </para>\r
80 </refsect1>\r
81 <refsect1 id="versions"><title>Version Support</title>\r
82 <informaltable frame="topbot">\r
83 #VARTABLECOLS#\r
84 <thead>\r
85 #FUNCTABLEHEADER#\r
86 <row>\r
87 <entry>dot (genType)</entry>#newin11#\r
88 </row>\r
89 <row>\r
90 <entry>dot (genDType)</entry>#newin40#\r
91 </row>\r
92 </thead>\r
93 </tgroup>\r
94 </informaltable>\r
95 </refsect1>\r
96 <refsect1 id="seealso"><title>See Also</title>\r
97 <para>\r
98 <citerefentry><refentrytitle>cross</refentrytitle></citerefentry>\r
99 </para>\r
100 </refsect1>\r
101 <refsect1 id="Copyright"><title>Copyright</title>\r
102 <para>\r
103 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
104 This material may be distributed subject to the terms and conditions set forth in \r
105 the Open Publication License, v 1.0, 8 June 1999.\r
106 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
107 </para>\r
108 </refsect1>\r
109</refentry>\r