source: NonGTP/FCollada/Documentation/_f_m_vector4_8h-source.html @ 964

Revision 964, 5.6 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FMath/FMVector4.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li><a href="classes.html"><span>Classes</span></a></li>
14    <li id="current"><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21  </ul></div>
22<h1>FMath/FMVector4.h</h1><a href="_f_m_vector4_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc.</span>
24<a name="l00003"></a>00003 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
25<a name="l00004"></a>00004 <span class="comment">*/</span>
26<a name="l00005"></a>00005
27<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _FM_VECTOR4_H_</span>
28<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _FM_VECTOR4_H_</span>
29<a name="l00013"></a>00013 <span class="preprocessor"></span>
30<a name="l00020"></a><a class="code" href="class_f_m_vector4.html">00020</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_m_vector4.html">FMVector4</a>
31<a name="l00021"></a>00021 {
32<a name="l00022"></a>00022 <span class="keyword">public</span>:
33<a name="l00023"></a><a class="code" href="class_f_m_vector4.html#fe5d4e4d762d99547c6c4ba2e2f336db">00023</a>     <span class="keywordtype">float</span> x;   
34<a name="l00024"></a><a class="code" href="class_f_m_vector4.html#36567c972039925e7ee11faa69ddd5ab">00024</a>     <span class="keywordtype">float</span> y;   
35<a name="l00025"></a><a class="code" href="class_f_m_vector4.html#a86685f8bdb9b6ce80edd1b4424475b8">00025</a>     <span class="keywordtype">float</span> z;   
36<a name="l00026"></a><a class="code" href="class_f_m_vector4.html#38311f6dd1139e792d6fad137572a82a">00026</a>     <span class="keywordtype">float</span> w;   
37<a name="l00031"></a>00031 <span class="preprocessor">    #ifndef _DEBUG</span>
38<a name="l00032"></a><a class="code" href="class_f_m_vector4.html#3b2cd748408a7afe130fa45c5bec65e4">00032</a> <span class="preprocessor"></span>    <a class="code" href="class_f_m_vector4.html">FMVector4</a>() {}
39<a name="l00033"></a>00033 <span class="preprocessor">    #else</span>
40<a name="l00034"></a>00034 <span class="preprocessor"></span>    <a class="code" href="class_f_m_vector4.html">FMVector4</a>() { x = 123456789.0f; y = 123456789.0f; z = 123456789.0f; w = 123456789.0f; }
41<a name="l00035"></a>00035 <span class="preprocessor">    #endif </span>
42<a name="l00036"></a>00036 <span class="preprocessor"></span>
43<a name="l00048"></a><a class="code" href="class_f_m_vector4.html#92d1fce02ac69aba7cf1bc8702a642ed">00048</a>     <a class="code" href="class_f_m_vector4.html">FMVector4</a>(<a class="code" href="class_f_m_vector3.html">FMVector3</a> v, <span class="keywordtype">float</span> _w) { x = v.<a class="code" href="class_f_m_vector3.html#b31613614892bba88807d31b2c9ee87e">x</a>; y = v.<a class="code" href="class_f_m_vector3.html#6e8a45596a095d86205557d7231ef973">y</a>; z = v.<a class="code" href="class_f_m_vector3.html#d912906661058ab718fb887ad67f5ad4">z</a>; w = _w; }
44<a name="l00049"></a>00049
45<a name="l00058"></a><a class="code" href="class_f_m_vector4.html#731d6b58dc88125ecc21ef20111ebc19">00058</a>     <a class="code" href="class_f_m_vector4.html">FMVector4</a>(<span class="keywordtype">float</span> _x, <span class="keywordtype">float</span> _y, <span class="keywordtype">float</span> _z, <span class="keywordtype">float</span> _w) { x = _x; y = _y; z = _z; w = _w; }
46<a name="l00059"></a>00059
47<a name="l00060"></a>00060 <span class="keyword">public</span>:
48<a name="l00066"></a><a class="code" href="class_f_m_vector4.html#c6f44432afa499a84c2c201de76749a6">00066</a>     <span class="keyword">inline</span> operator float*() { <span class="keywordflow">return</span> &amp;x; }
49<a name="l00067"></a>00067
50<a name="l00073"></a><a class="code" href="class_f_m_vector4.html#756aff49407ca315e21591402fdc66fd">00073</a>     <span class="keyword">inline</span> operator const float*()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;x; }
51<a name="l00074"></a>00074
52<a name="l00075"></a>00075 <span class="keyword">public</span>:
53<a name="l00076"></a><a class="code" href="class_f_m_vector4.html#98ad0940dc7826de03de889f947a3ef6">00076</a>     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="class_f_m_vector4.html">FMVector4</a> Zero;   
54<a name="l00077"></a>00077 };
55<a name="l00078"></a>00078
56<a name="l00079"></a>00079 <span class="preprocessor">#endif // _FM_VECTOR4_H_</span>
57</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
58<a href="http://www.doxygen.org/index.html">
59<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
60</body>
61</html>
Note: See TracBrowser for help on using the repository browser.