mirror of
https://github.com/TheAlgorithms/C
synced 2024-12-14 07:27:17 +03:00
171 lines
9.8 KiB
HTML
171 lines
9.8 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.5"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Algorithms_in_C: quaternion_ Struct Reference</title>
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../jquery.js"></script>
|
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
|
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../resize.js"></script>
|
|
<script type="text/javascript" src="../../navtreedata.js"></script>
|
|
<script type="text/javascript" src="../../navtree.js"></script>
|
|
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
|
<script type="text/javascript" src="../../search/search.js"></script>
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
|
jax: ["input/TeX","output/HTML-CSS"],
|
|
});
|
|
</script>
|
|
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">Algorithms_in_C<span id="projectnumber"> 1.0.0</span>
|
|
</div>
|
|
<div id="projectbrief">Set of algorithms implemented in C.</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.5 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="../../menudata.js"></script>
|
|
<script type="text/javascript" src="../../menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('../../',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('de/d58/structquaternion__.html','../../'); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-attribs">Data Fields</a> </div>
|
|
<div class="headertitle"><div class="title">quaternion_ Struct Reference<div class="ingroups"><a class="el" href="../../de/d5a/group__quaternions.html">Library for 3D Vectors & Quaternions</a> » <a class="el" href="../../dc/d9a/group__quats.html">3D Quaternion operations</a></div></div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>a Quaternion type represented using a scalar \(w\) or \(q_0\) and a 3D vector \(\left(q_1,q_2,q_3\right)\)
|
|
<a href="../../de/d58/structquaternion__.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="../../d0/dc7/geometry__datatypes_8h_source.html">geometry_datatypes.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for quaternion_:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/deb/structquaternion____coll__graph.svg" width="100" height="124"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
|
</div>
|
|
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
|
Data Fields</h2></td></tr>
|
|
<tr class="memitem:a8f4ba16bbebe066cfb2479c4db32427e"><td class="memItemLeft" ><a id="a8f4ba16bbebe066cfb2479c4db32427e" name="a8f4ba16bbebe066cfb2479c4db32427e"></a>
|
|
union {</td></tr>
|
|
<tr class="memitem:abf7117ed25aceacb13c85d411f09230a"><td class="memItemLeft" >
|
|
   float   <b>w</b></td></tr>
|
|
<tr class="memdesc:abf7117ed25aceacb13c85d411f09230a"><td class="mdescLeft"> </td><td class="mdescRight">real part of quaternion <br /></td></tr>
|
|
<tr class="separator:abf7117ed25aceacb13c85d411f09230a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acc73033db5151e631425e111fe3a56b3"><td class="memItemLeft" >
|
|
   float   <b>q0</b></td></tr>
|
|
<tr class="memdesc:acc73033db5151e631425e111fe3a56b3"><td class="mdescLeft"> </td><td class="mdescRight">real part of quaternion <br /></td></tr>
|
|
<tr class="separator:acc73033db5151e631425e111fe3a56b3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8f4ba16bbebe066cfb2479c4db32427e"><td class="memItemLeft" valign="top">}; </td><td class="memItemRight" valign="bottom"></td></tr>
|
|
<tr class="memdesc:a8f4ba16bbebe066cfb2479c4db32427e"><td class="mdescLeft"> </td><td class="mdescRight">dual part of quaternion <br /></td></tr>
|
|
<tr class="separator:a8f4ba16bbebe066cfb2479c4db32427e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2d66408dc698aaf4e2828dc13b0b5b4c"><td class="memItemLeft" ><a id="a2d66408dc698aaf4e2828dc13b0b5b4c" name="a2d66408dc698aaf4e2828dc13b0b5b4c"></a>
|
|
union {</td></tr>
|
|
<tr class="memitem:af66804aa3800c357db79722e8589e2b1"><td class="memItemLeft" >
|
|
   <a class="el" href="../../de/d7b/group__vec__3d.html#gaf9ee870d4922e488bdd3e7262485c270">vec_3d</a>   <b>dual</b></td></tr>
|
|
<tr class="memdesc:af66804aa3800c357db79722e8589e2b1"><td class="mdescLeft"> </td><td class="mdescRight">can be a 3D vector <br /></td></tr>
|
|
<tr class="separator:af66804aa3800c357db79722e8589e2b1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad5ea00d479ff5d121647ef390247adff"><td class="memItemLeft" ><a id="ad5ea00d479ff5d121647ef390247adff" name="ad5ea00d479ff5d121647ef390247adff"></a>
|
|
   struct {</td></tr>
|
|
<tr class="memitem:aef5c4def5b8aea694a16bb7761b703aa"><td class="memItemLeft" >
|
|
      float   <b>q1</b></td></tr>
|
|
<tr class="separator:aef5c4def5b8aea694a16bb7761b703aa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6a522d345c43487e07df732f7e91d17c"><td class="memItemLeft" >
|
|
      float   <b>q2</b></td></tr>
|
|
<tr class="separator:a6a522d345c43487e07df732f7e91d17c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a04270b6f015287ed3d1abafd447fff93"><td class="memItemLeft" >
|
|
      float   <b>q3</b></td></tr>
|
|
<tr class="separator:a04270b6f015287ed3d1abafd447fff93"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad5ea00d479ff5d121647ef390247adff"><td class="memItemLeft" valign="top">   } </td><td class="memItemRight" valign="bottom"></td></tr>
|
|
<tr class="memdesc:ad5ea00d479ff5d121647ef390247adff"><td class="mdescLeft"> </td><td class="mdescRight">or individual values <br /></td></tr>
|
|
<tr class="separator:ad5ea00d479ff5d121647ef390247adff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2d66408dc698aaf4e2828dc13b0b5b4c"><td class="memItemLeft" valign="top">}; </td><td class="memItemRight" valign="bottom"></td></tr>
|
|
<tr class="separator:a2d66408dc698aaf4e2828dc13b0b5b4c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p >a Quaternion type represented using a scalar \(w\) or \(q_0\) and a 3D vector \(\left(q_1,q_2,q_3\right)\) </p>
|
|
</div><hr/>The documentation for this struct was generated from the following file:<ul>
|
|
<li>geometry/<a class="el" href="../../d0/dc7/geometry__datatypes_8h_source.html">geometry_datatypes.h</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="../../de/d58/structquaternion__.html">quaternion_</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|