File: GetAngle.html

package info (click to toggle)
openlayer 2.1-2.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 3,392 kB
  • ctags: 2,317
  • sloc: ansic: 10,433; cpp: 9,890; xml: 109; makefile: 90; sh: 36
file content (8 lines) | stat: -rw-r--r-- 2,979 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transistional//EN"><html><head><title>OpenLayer Offline Manual</title><style type="text/css" media="all">@import "../CrystalStyle.css";</style><body bgcolor="FFFFFF" ><div align="center" style="pagestyle"><table width="60%"><tr><td><div class="parentLinks"><a href="../index.html">OpenLayer</a> | <a href="../Vec2D.html">Vec2D</a> | <a href="../Vec2D/GetAngle.html">GetAngle</a></div><br><div class="BigHeader">GetAngle</div><br><div class=""><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><font color="#777733">inline</font> <font color="#777733">float</font> <a href="../Vec2D/GetAngle.html"><font color="#0000CC">GetAngle</font></a>() <font color="#777733">const</font>
<br></strong></div></td></tr></table>
<br>Returns the angle of the vector.
<br></div></div><br><div class="MediumHeader">Examples</div><br><div class="Code"><font color="#999922">//&nbsp;Create&nbsp;a&nbsp;new&nbsp;vector&nbsp;called&nbsp;theVector&nbsp;with&nbsp;x&nbsp;=&nbsp;15.0&nbsp;and&nbsp;y&nbsp;=&nbsp;20.0&nbsp;//</font>
<br><a href="../Vec2D.html"><font color="#0000CC">Vec2D</font></a>&nbsp;theVector(&nbsp;<font color="#994400">15.0</font>,&nbsp;<font color="#994400">20.0</font>&nbsp;);
<br>
<br><font color="#999922">//&nbsp;Get&nbsp;the&nbsp;angle&nbsp;of&nbsp;the&nbsp;vector&nbsp;//</font>
<br><font color="#777733">float</font>&nbsp;angle&nbsp;=&nbsp;theVector.<a href="../Vec2D/GetAngle.html"><font color="#0000CC">GetAngle</font></a>();</div><div class=""><br><br><div class="MediumHeader">Other functions of the class <a href="../Vec2D.html"><font color="#0000CC">Vec2D</font></a></div><div class="Surrounded"><table size="100%" cellpadding="0" cellspacing="0"><tr><td halign="center" class="funclist"><a href="../Vec2D/GetMagnitude.html">GetMagnitude</a></td><td width="65%" halign="center"><div class="smalltext">Returns the magnitude (length) of the vector</div></td></tr><tr><td halign="center" class="funclist"><a href="../Vec2D/GetAngle.html">GetAngle</a></td><td width="65%" halign="center"><div class="smalltext">Returns the angle of the vector</div></td></tr><tr><td halign="center" class="funclist"><a href="../Vec2D/Normalized.html">Normalized</a></td><td width="65%" halign="center"><div class="smalltext">Returns a normalized copy of the vector</div></td></tr><tr><td colspan="2"><br><div class="SmallHeader"><font color="#775500">Advanced functions</font></div><br></td></tr><tr><td halign="center" class="funclist"><a href="../Vec2D/GetMagnitudeSquared.html">GetMagnitudeSquared</a></td><td width="65%" halign="center"><div class="smalltext">Returns the squared magnitude of the vector</div></td></tr></table></div><br><div class=""><a href="../index.html">Back to the main page of the manual</a></div><br>Questions about GetAngle? Click <a href="http://crystalstorm.ath.cx/index.php?lan=en&page=CreateFeedback&subject=GetAngle">here.</a></div></td></tr></table></body></html>