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 align="left">MTXReflect</H1> 12<H2 align="left">C Specification</H2> 13<BLOCKQUOTE> 14<PRE align="left"><CODE>#include <revolution/mtx.h> 15 16void MTXReflect ( Mtx <EM>m</EM>, VecPtr <EM>p</EM>, VecPtr <EM>n</EM> );</CODE></PRE> 17</BLOCKQUOTE> 18<H2 align="left">Arguments</H2> 19<DIV align="left"> 20<TABLE border="1" cellpadding="3" cellspacing="0.1"> 21 <TBODY> 22 <TR> 23<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>m</EM></STRONG></CODE></TD> 24<TD width="520">Resulting rotation matrix. <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> 25 </TR> 26 <TR> 27<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>p</EM></STRONG></CODE></TD> 28<TD width="520">Pointer to a point <code><strong>Vec</strong></code>, the point on the plane. <br> <code><em><strong>p</strong></em></code> may also be a pointer to a <code><strong>Point3d</strong></code>.</TD> 29 </TR> 30 <TR> 31<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>n</EM></STRONG></CODE></TD> 32<TD width="520">Pointer to the normal <code><strong>Vec</strong></code>, a vector normal to the plane.<br><EM><strong>n</STRONG></EM> can be a pointer to a <CODE>Point3d</CODE>.</TD> 33 </TR> 34 </TBODY> 35</TABLE> 36</DIV> 37<H2 align="left">Return Values</H2> 38<P align="left">None.</P> 39<H2 align="left">Description</H2> 40<P>Reflects a rotation matrix with respect to a plane. 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>. The matrix generated can be concatenated with the view matrix, for example, to create the view as seen by a planar mirror.</P> 41 42 43<H2 align="left">See Also</H2> 44<P align="left"><CODE><A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</CODE></A>, <CODE><A href="../structures/Point3d_Point3dPtr.html">Point3d, Point3dPtr</CODE></A>, <A href="../structures/Vec_VecPtr.html"><CODE>Vec, VecPtr</CODE></A>, <A href="../general/MTXMultVecSR.html"><CODE>MTXMultVecSR</CODE></A>, <CODE><A href="../general/MTXMultVecArray.html">MTXMultVecArray</A></CODE>, <CODE><A href="../general/MTXMultVecArraySR.html">MTXMultVecArraySR</A></CODE></P> 45<H2>Revision History</H2> 46<P>2006/03/01 Initial version.</p> 47<hr> 48<P>CONFIDENTIAL</p> 49</BODY> 50</HTML>