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>VECReflect</TITLE>
9</HEAD>
10<BODY>
11<H1>VECReflect</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void VECReflect ( const Vec* src, const Vec* normal, Vec* dst );
18</pre></dd></dl>
19
20<H2>Arguments</H2>
21<TABLE class="arguments" border="1" >
22  <TBODY>
23    <TR>
24<TH>src</TH>
25<TD>Pointer to incident <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A>.&nbsp;<code><em><strong>src</strong></em></code> must point toward the surface.</TD>
26    </TR>
27    <TR>
28<TH>normal</TH>
29<TD>Pointer to <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> that is normal to the surface. <code><em><strong>normal</strong></em></code> must point away from the surface.</TD>
30    </TR>
31    <TR>
32<TH>dst</TH>
33<TD>Pointer to the unit vector <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> that is reflected. Acceptable if <SPAN class="argument">dst</SPAN> = <SPAN class="argument">src</SPAN> or <SPAN class="argument">dst</SPAN> = <SPAN class="argument">normal</SPAN>.</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 an incident vector versus a normal such that the angle of incidence equals the angle of reflection. This function is intended for use in calculating surface reflections.</P>
43<P>Note: Although the incident vector does not need to be a unit matrix, the result is normalized.</P>
44
45<H2>See Also</H2>
46<P class="reference">
47<A href="../structures/Vec_VecPtr.html">Vec, VecPtr</A>,
48<A href="VECHalfAngle.html">VECHalfAngle</A>
49</P>
50
51<H2>Revision History</H2>
52<P>
532006/03/01 Initial version.
54</P>
55
56<hr><p>CONFIDENTIAL</p></body>
57</HTML>