1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>MTXReflect</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXReflect</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void MTXReflect ( Mtx m, VecPtr p, VecPtr n );
18</pre></dd></dl>
19
20<H2>Arguments</H2>
21<TABLE class="arguments" border="1" >
22  <TBODY>
23    <TR>
24<TH><em><strong><code>m</code></strong></em>&nbsp;&nbsp;</TH>
25<TD>Resulting rotation matrix.&nbsp;<code><em><strong>m</strong></em></code> may be an <A href="../structures/Mtx_MtxPtr.html"><code>Mtx</code></a> or an <A href="../structures/Mtx_MtxPtr.html"><code>MtxPtr</code></a>.</TD>
26    </TR>
27    <TR>
28<TH>p</TH>
29<TD>Pointer to the point <code><strong>Vec</strong></code>, the point on the plane.&nbsp;<SPAN class="argument">p</SPAN> may also be a pointer to <CODE>Point3d</CODE>.</TD>
30    </TR>
31    <TR>
32<TH>n</TH>
33<TD>Pointer to the normal <code><strong>Vec</strong></code>, a vector normal to the plane.<br><SPAN class="argument">n</SPAN> may also be a pointer to a <CODE>Point3d</CODE>.</TD>
34    </TR>
35  </TBODY>
36</TABLE>
37
38<H2>Return Values</H2>
39<P>None.</P>
40
41<H2>Description</H2>
42<P>Reflects a rotation matrix with respect to a plane.&nbsp;The plane is described using a point <em><strong><code>p</code></strong></em> on the plane, and a normal <em><strong><code>n</code></strong></em>.&nbsp;The matrix generated can be concatenated with the view matrix, for example, to create the view as seen by a planar mirror.</P>
43
44<H2>See Also</H2>
45<P class="reference">
46<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>,
47<A href="../structures/Point3d_Point3dPtr.html">Point3d, Point3dPtr</A>,
48<A href="../structures/Vec_VecPtr.html">Vec, VecPtr</A>,
49<A href="../general/MTXMultVecSR.html">MTXMultVecSR</A>,
50<A href="../general/MTXMultVecArray.html">MTXMultVecArray</A>,
51<A href="../general/MTXMultVecArraySR.html">MTXMultVecArraySR</A>
52</P>
53
54<H2>Revision History</H2>
55<P>
562006/03/01 Initial version.<br>
57</p>
58
59<hr><p>CONFIDENTIAL</p></body>
60</HTML>