fxruby 1.6.42 → 1.6.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/.yardopts +1 -1
  4. data/Gemfile +1 -2
  5. data/History.md +11 -0
  6. data/README.rdoc +4 -4
  7. data/Rakefile +10 -0
  8. data/appveyor.yml +4 -0
  9. data/docs/Fox.html +11184 -0
  10. data/docs/Fox/Canvas.html +141 -0
  11. data/docs/Fox/Canvas/CanvasError.html +124 -0
  12. data/docs/Fox/Canvas/CircleShape.html +477 -0
  13. data/docs/Fox/Canvas/ImageShape.html +477 -0
  14. data/docs/Fox/Canvas/LineShape.html +1005 -0
  15. data/docs/Fox/Canvas/PolygonShape.html +145 -0
  16. data/docs/Fox/Canvas/RectangleShape.html +439 -0
  17. data/docs/Fox/Canvas/SelectionPolicy.html +352 -0
  18. data/docs/Fox/Canvas/Shape.html +1955 -0
  19. data/docs/Fox/Canvas/ShapeCanvas.html +2031 -0
  20. data/docs/Fox/Canvas/ShapeGroup.html +527 -0
  21. data/docs/Fox/Canvas/SingleSelectionPolicy.html +291 -0
  22. data/docs/Fox/Canvas/TextShape.html +609 -0
  23. data/docs/Fox/FTNonModal.html +550 -0
  24. data/docs/Fox/FX4Splitter.html +1336 -0
  25. data/docs/Fox/FX7Segment.html +1010 -0
  26. data/docs/Fox/FXAccelTable.html +715 -0
  27. data/docs/Fox/FXApp.html +7998 -0
  28. data/docs/Fox/FXArc.html +562 -0
  29. data/docs/Fox/FXArrowButton.html +865 -0
  30. data/docs/Fox/FXBMPIcon.html +450 -0
  31. data/docs/Fox/FXBMPImage.html +434 -0
  32. data/docs/Fox/FXBitmap.html +1362 -0
  33. data/docs/Fox/FXBitmapFrame.html +595 -0
  34. data/docs/Fox/FXBitmapView.html +1451 -0
  35. data/docs/Fox/FXButton.html +534 -0
  36. data/docs/Fox/FXCURCursor.html +261 -0
  37. data/docs/Fox/FXCalendar.html +880 -0
  38. data/docs/Fox/FXCanvas.html +311 -0
  39. data/docs/Fox/FXCheckButton.html +949 -0
  40. data/docs/Fox/FXChoiceBox.html +472 -0
  41. data/docs/Fox/FXColor.html +1519 -0
  42. data/docs/Fox/FXColorBar.html +759 -0
  43. data/docs/Fox/FXColorDialog.html +591 -0
  44. data/docs/Fox/FXColorItem.html +323 -0
  45. data/docs/Fox/FXColorList.html +712 -0
  46. data/docs/Fox/FXColorRing.html +817 -0
  47. data/docs/Fox/FXColorSelector.html +796 -0
  48. data/docs/Fox/FXColorWell.html +850 -0
  49. data/docs/Fox/FXColorWheel.html +770 -0
  50. data/docs/Fox/FXComboBox.html +2939 -0
  51. data/docs/Fox/FXComboTableItem.html +544 -0
  52. data/docs/Fox/FXCommand.html +526 -0
  53. data/docs/Fox/FXComposite.html +433 -0
  54. data/docs/Fox/FXCursor.html +779 -0
  55. data/docs/Fox/FXDC.html +5231 -0
  56. data/docs/Fox/FXDCPrint.html +696 -0
  57. data/docs/Fox/FXDCWindow.html +358 -0
  58. data/docs/Fox/FXDataTarget.html +573 -0
  59. data/docs/Fox/FXDebugTarget.html +305 -0
  60. data/docs/Fox/FXDelegator.html +305 -0
  61. data/docs/Fox/FXDial.html +1133 -0
  62. data/docs/Fox/FXDialogBox.html +413 -0
  63. data/docs/Fox/FXDict.html +1063 -0
  64. data/docs/Fox/FXDirBox.html +752 -0
  65. data/docs/Fox/FXDirDialog.html +914 -0
  66. data/docs/Fox/FXDirItem.html +989 -0
  67. data/docs/Fox/FXDirList.html +1554 -0
  68. data/docs/Fox/FXDirSelector.html +995 -0
  69. data/docs/Fox/FXDockBar.html +1451 -0
  70. data/docs/Fox/FXDockHandler.html +468 -0
  71. data/docs/Fox/FXDockSite.html +678 -0
  72. data/docs/Fox/FXDockTitle.html +606 -0
  73. data/docs/Fox/FXDocument.html +536 -0
  74. data/docs/Fox/FXDragCorner.html +440 -0
  75. data/docs/Fox/FXDrawable.html +478 -0
  76. data/docs/Fox/FXDriveBox.html +746 -0
  77. data/docs/Fox/FXEvent.html +1736 -0
  78. data/docs/Fox/FXExtentd.html +1374 -0
  79. data/docs/Fox/FXExtentf.html +1374 -0
  80. data/docs/Fox/FXFileAssoc.html +850 -0
  81. data/docs/Fox/FXFileDialog.html +2688 -0
  82. data/docs/Fox/FXFileDict.html +1058 -0
  83. data/docs/Fox/FXFileItem.html +1141 -0
  84. data/docs/Fox/FXFileList.html +2259 -0
  85. data/docs/Fox/FXFileSelector.html +2529 -0
  86. data/docs/Fox/FXFileStream.html +503 -0
  87. data/docs/Fox/FXFoldingItem.html +2822 -0
  88. data/docs/Fox/FXFoldingList.html +5189 -0
  89. data/docs/Fox/FXFont.html +2998 -0
  90. data/docs/Fox/FXFontDesc.html +710 -0
  91. data/docs/Fox/FXFontDialog.html +420 -0
  92. data/docs/Fox/FXFontSelector.html +576 -0
  93. data/docs/Fox/FXFrame.html +1012 -0
  94. data/docs/Fox/FXGIFCursor.html +337 -0
  95. data/docs/Fox/FXGIFIcon.html +450 -0
  96. data/docs/Fox/FXGIFImage.html +434 -0
  97. data/docs/Fox/FXGLCanvas.html +700 -0
  98. data/docs/Fox/FXGLCone.html +785 -0
  99. data/docs/Fox/FXGLContext.html +649 -0
  100. data/docs/Fox/FXGLCube.html +703 -0
  101. data/docs/Fox/FXGLCylinder.html +791 -0
  102. data/docs/Fox/FXGLGroup.html +1385 -0
  103. data/docs/Fox/FXGLLine.html +653 -0
  104. data/docs/Fox/FXGLObject.html +759 -0
  105. data/docs/Fox/FXGLPoint.html +561 -0
  106. data/docs/Fox/FXGLShape.html +714 -0
  107. data/docs/Fox/FXGLSphere.html +626 -0
  108. data/docs/Fox/FXGLViewer.html +3506 -0
  109. data/docs/Fox/FXGLVisual.html +2147 -0
  110. data/docs/Fox/FXGradient.html +562 -0
  111. data/docs/Fox/FXGradientBar.html +2479 -0
  112. data/docs/Fox/FXGroupBox.html +688 -0
  113. data/docs/Fox/FXHeader.html +3040 -0
  114. data/docs/Fox/FXHeaderItem.html +1353 -0
  115. data/docs/Fox/FXHiliteStyle.html +804 -0
  116. data/docs/Fox/FXHorizontalFrame.html +359 -0
  117. data/docs/Fox/FXHorizontalSeparator.html +349 -0
  118. data/docs/Fox/FXICOIcon.html +450 -0
  119. data/docs/Fox/FXICOImage.html +434 -0
  120. data/docs/Fox/FXIcon.html +384 -0
  121. data/docs/Fox/FXIconDict.html +752 -0
  122. data/docs/Fox/FXIconItem.html +1518 -0
  123. data/docs/Fox/FXIconList.html +4676 -0
  124. data/docs/Fox/FXIconSource.html +963 -0
  125. data/docs/Fox/FXId.html +712 -0
  126. data/docs/Fox/FXImage.html +2328 -0
  127. data/docs/Fox/FXImageFrame.html +489 -0
  128. data/docs/Fox/FXImageView.html +504 -0
  129. data/docs/Fox/FXInputDialog.html +894 -0
  130. data/docs/Fox/FXIrb.html +942 -0
  131. data/docs/Fox/FXJPGIcon.html +607 -0
  132. data/docs/Fox/FXJPGImage.html +591 -0
  133. data/docs/Fox/FXKnob.html +1048 -0
  134. data/docs/Fox/FXLabel.html +1013 -0
  135. data/docs/Fox/FXLight.html +920 -0
  136. data/docs/Fox/FXList.html +3717 -0
  137. data/docs/Fox/FXListBox.html +2518 -0
  138. data/docs/Fox/FXListItem.html +1459 -0
  139. data/docs/Fox/FXMDIChild.html +2175 -0
  140. data/docs/Fox/FXMDIClient.html +781 -0
  141. data/docs/Fox/FXMDIDeleteButton.html +334 -0
  142. data/docs/Fox/FXMDIMaximizeButton.html +334 -0
  143. data/docs/Fox/FXMDIMenu.html +335 -0
  144. data/docs/Fox/FXMDIMinimizeButton.html +334 -0
  145. data/docs/Fox/FXMDIRestoreButton.html +334 -0
  146. data/docs/Fox/FXMDIWindowButton.html +334 -0
  147. data/docs/Fox/FXMainWindow.html +337 -0
  148. data/docs/Fox/FXMaterial.html +570 -0
  149. data/docs/Fox/FXMatrix.html +734 -0
  150. data/docs/Fox/FXMemoryBuffer.html +472 -0
  151. data/docs/Fox/FXMemoryStream.html +632 -0
  152. data/docs/Fox/FXMenuBar.html +347 -0
  153. data/docs/Fox/FXMenuButton.html +829 -0
  154. data/docs/Fox/FXMenuCaption.html +1080 -0
  155. data/docs/Fox/FXMenuCascade.html +388 -0
  156. data/docs/Fox/FXMenuCheck.html +721 -0
  157. data/docs/Fox/FXMenuCommand.html +400 -0
  158. data/docs/Fox/FXMenuPane.html +333 -0
  159. data/docs/Fox/FXMenuRadio.html +721 -0
  160. data/docs/Fox/FXMenuSeparator.html +440 -0
  161. data/docs/Fox/FXMenuTitle.html +405 -0
  162. data/docs/Fox/FXMessageBox.html +658 -0
  163. data/docs/Fox/FXObject.html +545 -0
  164. data/docs/Fox/FXOption.html +491 -0
  165. data/docs/Fox/FXOptionMenu.html +885 -0
  166. data/docs/Fox/FXPCXIcon.html +450 -0
  167. data/docs/Fox/FXPCXImage.html +434 -0
  168. data/docs/Fox/FXPNGIcon.html +524 -0
  169. data/docs/Fox/FXPNGImage.html +508 -0
  170. data/docs/Fox/FXPPMIcon.html +450 -0
  171. data/docs/Fox/FXPPMImage.html +373 -0
  172. data/docs/Fox/FXPSBounds.html +500 -0
  173. data/docs/Fox/FXPacker.html +1229 -0
  174. data/docs/Fox/FXPicker.html +345 -0
  175. data/docs/Fox/FXPopup.html +1099 -0
  176. data/docs/Fox/FXPrintDialog.html +485 -0
  177. data/docs/Fox/FXPrinter.html +1330 -0
  178. data/docs/Fox/FXProgressBar.html +1150 -0
  179. data/docs/Fox/FXProgressDialog.html +715 -0
  180. data/docs/Fox/FXPseudoKeyboard.html +428 -0
  181. data/docs/Fox/FXPseudoMouse.html +800 -0
  182. data/docs/Fox/FXPseudoTarget.html +472 -0
  183. data/docs/Fox/FXQuatd.html +1377 -0
  184. data/docs/Fox/FXQuatf.html +1392 -0
  185. data/docs/Fox/FXRGBIcon.html +450 -0
  186. data/docs/Fox/FXRGBImage.html +434 -0
  187. data/docs/Fox/FXRadioButton.html +885 -0
  188. data/docs/Fox/FXRanged.html +1522 -0
  189. data/docs/Fox/FXRangef.html +1522 -0
  190. data/docs/Fox/FXRealSlider.html +1187 -0
  191. data/docs/Fox/FXRealSpinner.html +2175 -0
  192. data/docs/Fox/FXRecentFiles.html +841 -0
  193. data/docs/Fox/FXRectangle.html +802 -0
  194. data/docs/Fox/FXRegion.html +841 -0
  195. data/docs/Fox/FXRegistry.html +682 -0
  196. data/docs/Fox/FXReplaceDialog.html +648 -0
  197. data/docs/Fox/FXRootWindow.html +312 -0
  198. data/docs/Fox/FXRuler.html +2000 -0
  199. data/docs/Fox/FXRulerView.html +3997 -0
  200. data/docs/Fox/FXScintilla.html +49117 -0
  201. data/docs/Fox/FXScrollArea.html +1363 -0
  202. data/docs/Fox/FXScrollBar.html +1019 -0
  203. data/docs/Fox/FXScrollCorner.html +290 -0
  204. data/docs/Fox/FXScrollPane.html +499 -0
  205. data/docs/Fox/FXScrollWindow.html +409 -0
  206. data/docs/Fox/FXSearchDialog.html +382 -0
  207. data/docs/Fox/FXSegment.html +422 -0
  208. data/docs/Fox/FXSeparator.html +402 -0
  209. data/docs/Fox/FXSettings.html +1861 -0
  210. data/docs/Fox/FXShell.html +233 -0
  211. data/docs/Fox/FXShutter.html +472 -0
  212. data/docs/Fox/FXShutterItem.html +669 -0
  213. data/docs/Fox/FXSize.html +592 -0
  214. data/docs/Fox/FXSlider.html +1129 -0
  215. data/docs/Fox/FXSphered.html +906 -0
  216. data/docs/Fox/FXSpheref.html +906 -0
  217. data/docs/Fox/FXSpinner.html +2102 -0
  218. data/docs/Fox/FXSplashScreen.html +497 -0
  219. data/docs/Fox/FXSplashWindow.html +494 -0
  220. data/docs/Fox/FXSplitter.html +643 -0
  221. data/docs/Fox/FXSpring.html +517 -0
  222. data/docs/Fox/FXStatusBar.html +593 -0
  223. data/docs/Fox/FXStatusLine.html +754 -0
  224. data/docs/Fox/FXStream.html +1372 -0
  225. data/docs/Fox/FXStreamAllocError.html +148 -0
  226. data/docs/Fox/FXStreamEndError.html +148 -0
  227. data/docs/Fox/FXStreamError.html +259 -0
  228. data/docs/Fox/FXStreamFailureError.html +148 -0
  229. data/docs/Fox/FXStreamFormatError.html +148 -0
  230. data/docs/Fox/FXStreamFullError.html +148 -0
  231. data/docs/Fox/FXStreamNoReadError.html +148 -0
  232. data/docs/Fox/FXStreamNoWriteError.html +148 -0
  233. data/docs/Fox/FXStreamUnknownError.html +148 -0
  234. data/docs/Fox/FXStringDict.html +552 -0
  235. data/docs/Fox/FXSwitcher.html +619 -0
  236. data/docs/Fox/FXTGAIcon.html +450 -0
  237. data/docs/Fox/FXTGAImage.html +434 -0
  238. data/docs/Fox/FXTIFIcon.html +604 -0
  239. data/docs/Fox/FXTIFImage.html +588 -0
  240. data/docs/Fox/FXTabBar.html +644 -0
  241. data/docs/Fox/FXTabBook.html +373 -0
  242. data/docs/Fox/FXTabItem.html +478 -0
  243. data/docs/Fox/FXTable.html +10107 -0
  244. data/docs/Fox/FXTableItem.html +2195 -0
  245. data/docs/Fox/FXTablePos.html +360 -0
  246. data/docs/Fox/FXTableRange.html +360 -0
  247. data/docs/Fox/FXText.html +6870 -0
  248. data/docs/Fox/FXTextChange.html +492 -0
  249. data/docs/Fox/FXTextField.html +2016 -0
  250. data/docs/Fox/FXToggleButton.html +844 -0
  251. data/docs/Fox/FXToolBar.html +452 -0
  252. data/docs/Fox/FXToolBarGrip.html +584 -0
  253. data/docs/Fox/FXToolBarShell.html +788 -0
  254. data/docs/Fox/FXToolBarTab.html +729 -0
  255. data/docs/Fox/FXToolTip.html +761 -0
  256. data/docs/Fox/FXTopWindow.html +1716 -0
  257. data/docs/Fox/FXTranslator.html +481 -0
  258. data/docs/Fox/FXTreeItem.html +2813 -0
  259. data/docs/Fox/FXTreeList.html +5095 -0
  260. data/docs/Fox/FXTreeListBox.html +3080 -0
  261. data/docs/Fox/FXTriStateButton.html +681 -0
  262. data/docs/Fox/FXUndoList.html +2560 -0
  263. data/docs/Fox/FXVec2d.html +1450 -0
  264. data/docs/Fox/FXVec2f.html +1442 -0
  265. data/docs/Fox/FXVec3d.html +1649 -0
  266. data/docs/Fox/FXVec3f.html +1649 -0
  267. data/docs/Fox/FXVec4d.html +1858 -0
  268. data/docs/Fox/FXVec4f.html +1858 -0
  269. data/docs/Fox/FXVerticalFrame.html +359 -0
  270. data/docs/Fox/FXVerticalSeparator.html +349 -0
  271. data/docs/Fox/FXViewport.html +780 -0
  272. data/docs/Fox/FXVisual.html +1023 -0
  273. data/docs/Fox/FXWindow.html +9948 -0
  274. data/docs/Fox/FXWizard.html +1052 -0
  275. data/docs/Fox/FXXBMIcon.html +453 -0
  276. data/docs/Fox/FXXBMImage.html +437 -0
  277. data/docs/Fox/FXXPMIcon.html +450 -0
  278. data/docs/Fox/FXXPMImage.html +434 -0
  279. data/docs/Fox/NotifyHeader.html +286 -0
  280. data/docs/Fox/SCNotification.html +1438 -0
  281. data/docs/Fox/TextRange.html +281 -0
  282. data/docs/IRB.html +204 -0
  283. data/docs/Responder.html +693 -0
  284. data/docs/Responder2.html +225 -0
  285. data/docs/_index.html +2101 -0
  286. data/docs/class_list.html +51 -0
  287. data/docs/css/common.css +1 -0
  288. data/docs/css/full_list.css +58 -0
  289. data/docs/css/style.css +496 -0
  290. data/docs/file.History.html +869 -0
  291. data/docs/file.README.html +104 -0
  292. data/docs/file_list.html +66 -0
  293. data/docs/frames.html +17 -0
  294. data/docs/index.html +614 -0
  295. data/docs/js/app.js +314 -0
  296. data/docs/js/full_list.js +216 -0
  297. data/docs/js/jquery.js +4 -0
  298. data/docs/method_list.html +31043 -0
  299. data/docs/top-level-namespace.html +214 -0
  300. data/examples/canvasdemo.rb +5 -1
  301. data/examples/gltest.rb +162 -106
  302. data/examples/glviewer.rb +12 -8
  303. data/ext/fox16_c/extconf.rb +1 -1
  304. data/fxruby.gemspec +1 -1
  305. data/lib/fox16/canvas.rb +76 -45
  306. data/lib/fox16/glgroup.rb +5 -5
  307. data/lib/fox16/glshapes.rb +111 -99
  308. data/lib/fox16/version.rb +1 -1
  309. metadata +298 -4
@@ -0,0 +1,1392 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Fox::FXQuatf
8
+
9
+ &mdash; FXRuby API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Fox::FXQuatf";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (F)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span>
41
+ &raquo;
42
+ <span class="title">FXQuatf</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Fox::FXQuatf
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="FXVec4f.html" title="Fox::FXVec4f (class)">FXVec4f</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="FXVec4f.html" title="Fox::FXVec4f (class)">FXVec4f</a></span></li>
78
+
79
+ <li class="next">Fox::FXQuatf</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>rdoc-sources/FXQuatf.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h2>Instance Attribute Summary</h2>
111
+
112
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="FXVec4f.html" title="Fox::FXVec4f (class)">FXVec4f</a></span></h3>
113
+ <p class="inherited"><span class='object_link'><a href="FXVec4f.html#w-instance_method" title="Fox::FXVec4f#w (method)">#w</a></span>, <span class='object_link'><a href="FXVec4f.html#x-instance_method" title="Fox::FXVec4f#x (method)">#x</a></span>, <span class='object_link'><a href="FXVec4f.html#y-instance_method" title="Fox::FXVec4f#y (method)">#y</a></span>, <span class='object_link'><a href="FXVec4f.html#z-instance_method" title="Fox::FXVec4f#z (method)">#z</a></span></p>
114
+
115
+
116
+
117
+ <h2>
118
+ Instance Method Summary
119
+ <small><a href="#" class="summary_toggle">collapse</a></small>
120
+ </h2>
121
+
122
+ <ul class="summary">
123
+
124
+ <li class="public ">
125
+ <span class="summary_signature">
126
+
127
+ <a href="#*-instance_method" title="#* (instance method)">#<strong>*</strong>(vec) &#x21d2; Object </a>
128
+
129
+
130
+
131
+ </span>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"><div class='inline'>
142
+ <p>Compute the rotation of a vector <em>vec</em> by this quaternion; returns the rotated vector (a new FXVec3f instance).</p>
143
+ </div></span>
144
+
145
+ </li>
146
+
147
+
148
+ <li class="public ">
149
+ <span class="summary_signature">
150
+
151
+ <a href="#adjust!-instance_method" title="#adjust! (instance method)">#<strong>adjust!</strong> &#x21d2; Object </a>
152
+
153
+
154
+
155
+ </span>
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+ <span class="summary_desc"><div class='inline'>
166
+ <p>Adjust quaternion length; returns a reference to self.</p>
167
+ </div></span>
168
+
169
+ </li>
170
+
171
+
172
+ <li class="public ">
173
+ <span class="summary_signature">
174
+
175
+ <a href="#arc!-instance_method" title="#arc! (instance method)">#<strong>arc!</strong>(a, b) &#x21d2; Object </a>
176
+
177
+
178
+
179
+ </span>
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+ <span class="summary_desc"><div class='inline'>
190
+ <p>Construct a quaternion from arc a-&gt;b on unit sphere and return reference to self.</p>
191
+ </div></span>
192
+
193
+ </li>
194
+
195
+
196
+ <li class="public ">
197
+ <span class="summary_signature">
198
+
199
+ <a href="#conj-instance_method" title="#conj (instance method)">#<strong>conj</strong> &#x21d2; Object </a>
200
+
201
+
202
+
203
+ </span>
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ <span class="summary_desc"><div class='inline'>
214
+ <p>Return the conjugate of this quaternion (a new FXQuatf instance).</p>
215
+ </div></span>
216
+
217
+ </li>
218
+
219
+
220
+ <li class="public ">
221
+ <span class="summary_signature">
222
+
223
+ <a href="#exp-instance_method" title="#exp (instance method)">#<strong>exp</strong> &#x21d2; Object </a>
224
+
225
+
226
+
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'>
238
+ <p>Return the exponentiation of this quaternion (a new FXQuatf instance).</p>
239
+ </div></span>
240
+
241
+ </li>
242
+
243
+
244
+ <li class="public ">
245
+ <span class="summary_signature">
246
+
247
+ <a href="#getAxes-instance_method" title="#getAxes (instance method)">#<strong>getAxes</strong> &#x21d2; Object </a>
248
+
249
+
250
+
251
+ </span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'>
262
+ <p>Get quaternion axes as a 3-element array of FXVec3f instances.</p>
263
+ </div></span>
264
+
265
+ </li>
266
+
267
+
268
+ <li class="public ">
269
+ <span class="summary_signature">
270
+
271
+ <a href="#getAxisAngle-instance_method" title="#getAxisAngle (instance method)">#<strong>getAxisAngle</strong> &#x21d2; Object </a>
272
+
273
+
274
+
275
+ </span>
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ <span class="summary_desc"><div class='inline'>
286
+ <p>Return the rotation axis and angle for this quaternion, i.e.</p>
287
+ </div></span>
288
+
289
+ </li>
290
+
291
+
292
+ <li class="public ">
293
+ <span class="summary_signature">
294
+
295
+ <a href="#getRollPitchYaw-instance_method" title="#getRollPitchYaw (instance method)">#<strong>getRollPitchYaw</strong> &#x21d2; Object </a>
296
+
297
+
298
+
299
+ </span>
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+ <span class="summary_desc"><div class='inline'>
310
+ <p>Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.</p>
311
+ </div></span>
312
+
313
+ </li>
314
+
315
+
316
+ <li class="public ">
317
+ <span class="summary_signature">
318
+
319
+ <a href="#getXAxis-instance_method" title="#getXAxis (instance method)">#<strong>getXAxis</strong> &#x21d2; Object </a>
320
+
321
+
322
+
323
+ </span>
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+ <span class="summary_desc"><div class='inline'>
334
+ <p>Return the local x-axis as an FXVec3f instance.</p>
335
+ </div></span>
336
+
337
+ </li>
338
+
339
+
340
+ <li class="public ">
341
+ <span class="summary_signature">
342
+
343
+ <a href="#getYAxis-instance_method" title="#getYAxis (instance method)">#<strong>getYAxis</strong> &#x21d2; Object </a>
344
+
345
+
346
+
347
+ </span>
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+ <span class="summary_desc"><div class='inline'>
358
+ <p>Return the local y-axis as an FXVec3f instance.</p>
359
+ </div></span>
360
+
361
+ </li>
362
+
363
+
364
+ <li class="public ">
365
+ <span class="summary_signature">
366
+
367
+ <a href="#getZAxis-instance_method" title="#getZAxis (instance method)">#<strong>getZAxis</strong> &#x21d2; Object </a>
368
+
369
+
370
+
371
+ </span>
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+ <span class="summary_desc"><div class='inline'>
382
+ <p>Return the local z-axis as an FXVec3f instance.</p>
383
+ </div></span>
384
+
385
+ </li>
386
+
387
+
388
+ <li class="public ">
389
+ <span class="summary_signature">
390
+
391
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(x, y, z, w) &#x21d2; FXQuatf </a>
392
+
393
+
394
+
395
+ </span>
396
+
397
+
398
+ <span class="note title constructor">constructor</span>
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+ <span class="summary_desc"><div class='inline'>
408
+ <p>Construct an FXQuatf from components.</p>
409
+ </div></span>
410
+
411
+ </li>
412
+
413
+
414
+ <li class="public ">
415
+ <span class="summary_signature">
416
+
417
+ <a href="#invert-instance_method" title="#invert (instance method)">#<strong>invert</strong> &#x21d2; Object </a>
418
+
419
+
420
+
421
+ </span>
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+ <span class="summary_desc"><div class='inline'>
432
+ <p>Return the inverse of this quaternion (a new FXQuatf instance).</p>
433
+ </div></span>
434
+
435
+ </li>
436
+
437
+
438
+ <li class="public ">
439
+ <span class="summary_signature">
440
+
441
+ <a href="#lerp!-instance_method" title="#lerp! (instance method)">#<strong>lerp!</strong>(u, v, f) &#x21d2; Object </a>
442
+
443
+
444
+
445
+ </span>
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ <span class="summary_desc"><div class='inline'>
456
+ <p>Spherical lerp, return reference to self.</p>
457
+ </div></span>
458
+
459
+ </li>
460
+
461
+
462
+ <li class="public ">
463
+ <span class="summary_signature">
464
+
465
+ <a href="#log-instance_method" title="#log (instance method)">#<strong>log</strong> &#x21d2; Object </a>
466
+
467
+
468
+
469
+ </span>
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <span class="summary_desc"><div class='inline'>
480
+ <p>Return the logarithm of this quaternion (a new FXQuatf instance).</p>
481
+ </div></span>
482
+
483
+ </li>
484
+
485
+
486
+ <li class="public ">
487
+ <span class="summary_signature">
488
+
489
+ <a href="#setAxes-instance_method" title="#setAxes (instance method)">#<strong>setAxes</strong>(ex, ey, ez) &#x21d2; Object </a>
490
+
491
+
492
+
493
+ </span>
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+ <span class="summary_desc"><div class='inline'>
504
+ <p>Set quaternion from axes (where <em>ex</em>, <em>ey</em> and <em>ez</em> are FXVec3f instances).</p>
505
+ </div></span>
506
+
507
+ </li>
508
+
509
+
510
+ <li class="public ">
511
+ <span class="summary_signature">
512
+
513
+ <a href="#setAxisAngle-instance_method" title="#setAxisAngle (instance method)">#<strong>setAxisAngle</strong>(axis, phi = 0.0) &#x21d2; Object </a>
514
+
515
+
516
+
517
+ </span>
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+ <span class="summary_desc"><div class='inline'>
528
+ <p>Set quaternion from rotation axis and angle.</p>
529
+ </div></span>
530
+
531
+ </li>
532
+
533
+
534
+ <li class="public ">
535
+ <span class="summary_signature">
536
+
537
+ <a href="#setRollPitchYaw-instance_method" title="#setRollPitchYaw (instance method)">#<strong>setRollPitchYaw</strong>(roll, pitch, yaw) &#x21d2; Object </a>
538
+
539
+
540
+
541
+ </span>
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+ <span class="summary_desc"><div class='inline'>
552
+ <p>Set quaternion from yaw (z), pitch (y) and roll (x).</p>
553
+ </div></span>
554
+
555
+ </li>
556
+
557
+
558
+ <li class="public ">
559
+ <span class="summary_signature">
560
+
561
+ <a href="#unitinvert-instance_method" title="#unitinvert (instance method)">#<strong>unitinvert</strong> &#x21d2; Object </a>
562
+
563
+
564
+
565
+ </span>
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+ <span class="summary_desc"><div class='inline'>
576
+ <p>Invert unit quaternion (returns a new FXQuatf instance).</p>
577
+ </div></span>
578
+
579
+ </li>
580
+
581
+
582
+ </ul>
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXVec4f.html" title="Fox::FXVec4f (class)">FXVec4f</a></span></h3>
595
+ <p class="inherited"><span class='object_link'><a href="FXVec4f.html#%2B-instance_method" title="Fox::FXVec4f#+ (method)">#+</a></span>, <span class='object_link'><a href="FXVec4f.html#--instance_method" title="Fox::FXVec4f#- (method)">#-</a></span>, <span class='object_link'><a href="FXVec4f.html#-@-instance_method" title="Fox::FXVec4f#-@ (method)">#-@</a></span>, <span class='object_link'><a href="FXVec4f.html#%2F-instance_method" title="Fox::FXVec4f#/ (method)">#/</a></span>, <span class='object_link'><a href="FXVec4f.html#==-instance_method" title="Fox::FXVec4f#== (method)">#==</a></span>, <span class='object_link'><a href="FXVec4f.html#[]-instance_method" title="Fox::FXVec4f#[] (method)">#[]</a></span>, <span class='object_link'><a href="FXVec4f.html#[]=-instance_method" title="Fox::FXVec4f#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="FXVec4f.html#clamp-instance_method" title="Fox::FXVec4f#clamp (method)">#clamp</a></span>, <span class='object_link'><a href="FXVec4f.html#cross-instance_method" title="Fox::FXVec4f#cross (method)">#cross</a></span>, <span class='object_link'><a href="FXVec4f.html#crosses%3F-instance_method" title="Fox::FXVec4f#crosses? (method)">#crosses?</a></span>, <span class='object_link'><a href="FXVec4f.html#distance-instance_method" title="Fox::FXVec4f#distance (method)">#distance</a></span>, <span class='object_link'><a href="FXVec4f.html#dot-instance_method" title="Fox::FXVec4f#dot (method)">#dot</a></span>, <span class='object_link'><a href="FXVec4f.html#hi-instance_method" title="Fox::FXVec4f#hi (method)">#hi</a></span>, <span class='object_link'><a href="FXVec4f.html#inspect-instance_method" title="Fox::FXVec4f#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="FXVec4f.html#length-instance_method" title="Fox::FXVec4f#length (method)">#length</a></span>, <span class='object_link'><a href="FXVec4f.html#length2-instance_method" title="Fox::FXVec4f#length2 (method)">#length2</a></span>, <span class='object_link'><a href="FXVec4f.html#lo-instance_method" title="Fox::FXVec4f#lo (method)">#lo</a></span>, <span class='object_link'><a href="FXVec4f.html#normalize-instance_method" title="Fox::FXVec4f#normalize (method)">#normalize</a></span>, <span class='object_link'><a href="FXVec4f.html#plane-class_method" title="Fox::FXVec4f.plane (method)">plane</a></span>, <span class='object_link'><a href="FXVec4f.html#to_a-instance_method" title="Fox::FXVec4f#to_a (method)">#to_a</a></span>, <span class='object_link'><a href="FXVec4f.html#to_s-instance_method" title="Fox::FXVec4f#to_s (method)">#to_s</a></span></p>
596
+ <div id="constructor_details" class="method_details_list">
597
+ <h2>Constructor Details</h2>
598
+
599
+ <div class="method_details first">
600
+ <h3 class="signature first" id="initialize-instance_method">
601
+
602
+ #<strong>initialize</strong>(x, y, z, w) &#x21d2; <tt><span class='object_link'><a href="" title="Fox::FXQuatf (class)">FXQuatf</a></span></tt>
603
+
604
+
605
+
606
+
607
+
608
+ </h3><div class="docstring">
609
+ <div class="discussion">
610
+
611
+ <p>Construct an FXQuatf from components.</p>
612
+
613
+ <h4 id="label-Parameters-3A">Parameters:</h4>
614
+ <dl class="rdoc-list note-list"><dt><code>x</code>
615
+ <dd>
616
+ <p>x [Float]</p>
617
+ </dd><dt><code>y</code>
618
+ <dd>
619
+ <p>y [Float]</p>
620
+ </dd><dt><code>z</code>
621
+ <dd>
622
+ <p>z [Float]</p>
623
+ </dd><dt><code>width</code>
624
+ <dd>
625
+ <p>w [Float]</p>
626
+ </dd></dl>
627
+
628
+
629
+ </div>
630
+ </div>
631
+ <div class="tags">
632
+
633
+
634
+ </div><table class="source_code">
635
+ <tr>
636
+ <td>
637
+ <pre class="lines">
638
+
639
+
640
+ 4</pre>
641
+ </td>
642
+ <td>
643
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 4</span>
644
+
645
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
646
+ </td>
647
+ </tr>
648
+ </table>
649
+ </div>
650
+
651
+ </div>
652
+
653
+
654
+ <div id="instance_method_details" class="method_details_list">
655
+ <h2>Instance Method Details</h2>
656
+
657
+
658
+ <div class="method_details first">
659
+ <h3 class="signature first" id="*-instance_method">
660
+
661
+ #<strong>*</strong>(vec) &#x21d2; <tt>Object</tt>
662
+
663
+
664
+
665
+
666
+
667
+ </h3><div class="docstring">
668
+ <div class="discussion">
669
+
670
+ <p>Compute the rotation of a vector <em>vec</em> by this quaternion; returns the rotated vector (a new FXVec3f instance).</p>
671
+
672
+ <h4 id="label-Parameters-3A">Parameters:</h4>
673
+ <dl class="rdoc-list note-list"><dt><code>vec</code>
674
+ <dd>
675
+ <p>the vector to be rotated <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
676
+ </dd></dl>
677
+
678
+
679
+ </div>
680
+ </div>
681
+ <div class="tags">
682
+
683
+
684
+ </div><table class="source_code">
685
+ <tr>
686
+ <td>
687
+ <pre class="lines">
688
+
689
+
690
+ 139</pre>
691
+ </td>
692
+ <td>
693
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 139</span>
694
+
695
+ <span class='kw'>def</span> <span class='op'>*</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
696
+ </td>
697
+ </tr>
698
+ </table>
699
+ </div>
700
+
701
+ <div class="method_details ">
702
+ <h3 class="signature " id="adjust!-instance_method">
703
+
704
+ #<strong>adjust!</strong> &#x21d2; <tt>Object</tt>
705
+
706
+
707
+
708
+
709
+
710
+ </h3><div class="docstring">
711
+ <div class="discussion">
712
+
713
+ <p>Adjust quaternion length; returns a reference to self.</p>
714
+
715
+
716
+ </div>
717
+ </div>
718
+ <div class="tags">
719
+
720
+
721
+ </div><table class="source_code">
722
+ <tr>
723
+ <td>
724
+ <pre class="lines">
725
+
726
+
727
+ 56</pre>
728
+ </td>
729
+ <td>
730
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 56</span>
731
+
732
+ <span class='kw'>def</span> <span class='id identifier rubyid_adjust!'>adjust!</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
733
+ </td>
734
+ </tr>
735
+ </table>
736
+ </div>
737
+
738
+ <div class="method_details ">
739
+ <h3 class="signature " id="arc!-instance_method">
740
+
741
+ #<strong>arc!</strong>(a, b) &#x21d2; <tt>Object</tt>
742
+
743
+
744
+
745
+
746
+
747
+ </h3><div class="docstring">
748
+ <div class="discussion">
749
+
750
+ <p>Construct a quaternion from arc a-&gt;b on unit sphere and return reference to self.</p>
751
+
752
+ <h4 id="label-Parameters-3A">Parameters:</h4>
753
+ <dl class="rdoc-list note-list"><dt><code>a</code>
754
+ <dd>
755
+ <p><span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
756
+ </dd><dt><code>b</code>
757
+ <dd>
758
+ <p><span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
759
+ </dd></dl>
760
+
761
+
762
+ </div>
763
+ </div>
764
+ <div class="tags">
765
+
766
+
767
+ </div><table class="source_code">
768
+ <tr>
769
+ <td>
770
+ <pre class="lines">
771
+
772
+
773
+ 160</pre>
774
+ </td>
775
+ <td>
776
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 160</span>
777
+
778
+ <span class='kw'>def</span> <span class='id identifier rubyid_arc!'>arc!</span><span class='lparen'>(</span><span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_b'>b</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
779
+ </td>
780
+ </tr>
781
+ </table>
782
+ </div>
783
+
784
+ <div class="method_details ">
785
+ <h3 class="signature " id="conj-instance_method">
786
+
787
+ #<strong>conj</strong> &#x21d2; <tt>Object</tt>
788
+
789
+
790
+
791
+
792
+
793
+ </h3><div class="docstring">
794
+ <div class="discussion">
795
+
796
+ <p>Return the conjugate of this quaternion (a new FXQuatf instance).</p>
797
+
798
+
799
+ </div>
800
+ </div>
801
+ <div class="tags">
802
+
803
+
804
+ </div><table class="source_code">
805
+ <tr>
806
+ <td>
807
+ <pre class="lines">
808
+
809
+
810
+ 134</pre>
811
+ </td>
812
+ <td>
813
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 134</span>
814
+
815
+ <span class='kw'>def</span> <span class='id identifier rubyid_conj'>conj</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
816
+ </td>
817
+ </tr>
818
+ </table>
819
+ </div>
820
+
821
+ <div class="method_details ">
822
+ <h3 class="signature " id="exp-instance_method">
823
+
824
+ #<strong>exp</strong> &#x21d2; <tt>Object</tt>
825
+
826
+
827
+
828
+
829
+
830
+ </h3><div class="docstring">
831
+ <div class="discussion">
832
+
833
+ <p>Return the exponentiation of this quaternion (a new FXQuatf instance).</p>
834
+
835
+
836
+ </div>
837
+ </div>
838
+ <div class="tags">
839
+
840
+
841
+ </div><table class="source_code">
842
+ <tr>
843
+ <td>
844
+ <pre class="lines">
845
+
846
+
847
+ 114</pre>
848
+ </td>
849
+ <td>
850
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 114</span>
851
+
852
+ <span class='kw'>def</span> <span class='id identifier rubyid_exp'>exp</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
853
+ </td>
854
+ </tr>
855
+ </table>
856
+ </div>
857
+
858
+ <div class="method_details ">
859
+ <h3 class="signature " id="getAxes-instance_method">
860
+
861
+ #<strong>getAxes</strong> &#x21d2; <tt>Object</tt>
862
+
863
+
864
+
865
+
866
+
867
+ </h3><div class="docstring">
868
+ <div class="discussion">
869
+
870
+ <p>Get quaternion axes as a 3-element array of FXVec3f instances.</p>
871
+
872
+
873
+ </div>
874
+ </div>
875
+ <div class="tags">
876
+
877
+
878
+ </div><table class="source_code">
879
+ <tr>
880
+ <td>
881
+ <pre class="lines">
882
+
883
+
884
+ 100</pre>
885
+ </td>
886
+ <td>
887
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 100</span>
888
+
889
+ <span class='kw'>def</span> <span class='id identifier rubyid_getAxes'>getAxes</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
890
+ </td>
891
+ </tr>
892
+ </table>
893
+ </div>
894
+
895
+ <div class="method_details ">
896
+ <h3 class="signature " id="getAxisAngle-instance_method">
897
+
898
+ #<strong>getAxisAngle</strong> &#x21d2; <tt>Object</tt>
899
+
900
+
901
+
902
+
903
+
904
+ </h3><div class="docstring">
905
+ <div class="discussion">
906
+
907
+ <p>Return the rotation axis and angle for this quaternion, i.e.</p>
908
+
909
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_axis'>axis</span><span class='comma'>,</span> <span class='id identifier rubyid_angle'>angle</span> <span class='op'>=</span> <span class='id identifier rubyid_aQuaternion'>aQuaternion</span><span class='period'>.</span><span class='id identifier rubyid_getAxisAngle'>getAxisAngle</span><span class='lparen'>(</span><span class='rparen'>)</span>
910
+ </code></pre>
911
+
912
+ <p>where <em>axis</em> is an FXVec3f instance and <em>angle</em> is the angle of rotation in radians.</p>
913
+
914
+
915
+ </div>
916
+ </div>
917
+ <div class="tags">
918
+
919
+
920
+ </div><table class="source_code">
921
+ <tr>
922
+ <td>
923
+ <pre class="lines">
924
+
925
+
926
+ 76</pre>
927
+ </td>
928
+ <td>
929
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 76</span>
930
+
931
+ <span class='kw'>def</span> <span class='id identifier rubyid_getAxisAngle'>getAxisAngle</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
932
+ </td>
933
+ </tr>
934
+ </table>
935
+ </div>
936
+
937
+ <div class="method_details ">
938
+ <h3 class="signature " id="getRollPitchYaw-instance_method">
939
+
940
+ #<strong>getRollPitchYaw</strong> &#x21d2; <tt>Object</tt>
941
+
942
+
943
+
944
+
945
+
946
+ </h3><div class="docstring">
947
+ <div class="discussion">
948
+
949
+ <p>Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.</p>
950
+
951
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_roll'>roll</span><span class='comma'>,</span> <span class='id identifier rubyid_pitch'>pitch</span><span class='comma'>,</span> <span class='id identifier rubyid_yaw'>yaw</span> <span class='op'>=</span> <span class='id identifier rubyid_aQuaternion'>aQuaternion</span><span class='period'>.</span><span class='id identifier rubyid_getRollPitchYaw'>getRollPitchYaw</span><span class='lparen'>(</span><span class='rparen'>)</span>
952
+ </code></pre>
953
+
954
+
955
+ </div>
956
+ </div>
957
+ <div class="tags">
958
+
959
+
960
+ </div><table class="source_code">
961
+ <tr>
962
+ <td>
963
+ <pre class="lines">
964
+
965
+
966
+ 94</pre>
967
+ </td>
968
+ <td>
969
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 94</span>
970
+
971
+ <span class='kw'>def</span> <span class='id identifier rubyid_getRollPitchYaw'>getRollPitchYaw</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
972
+ </td>
973
+ </tr>
974
+ </table>
975
+ </div>
976
+
977
+ <div class="method_details ">
978
+ <h3 class="signature " id="getXAxis-instance_method">
979
+
980
+ #<strong>getXAxis</strong> &#x21d2; <tt>Object</tt>
981
+
982
+
983
+
984
+
985
+
986
+ </h3><div class="docstring">
987
+ <div class="discussion">
988
+
989
+ <p>Return the local x-axis as an FXVec3f instance.</p>
990
+
991
+
992
+ </div>
993
+ </div>
994
+ <div class="tags">
995
+
996
+
997
+ </div><table class="source_code">
998
+ <tr>
999
+ <td>
1000
+ <pre class="lines">
1001
+
1002
+
1003
+ 103</pre>
1004
+ </td>
1005
+ <td>
1006
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 103</span>
1007
+
1008
+ <span class='kw'>def</span> <span class='id identifier rubyid_getXAxis'>getXAxis</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1009
+ </td>
1010
+ </tr>
1011
+ </table>
1012
+ </div>
1013
+
1014
+ <div class="method_details ">
1015
+ <h3 class="signature " id="getYAxis-instance_method">
1016
+
1017
+ #<strong>getYAxis</strong> &#x21d2; <tt>Object</tt>
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+ </h3><div class="docstring">
1024
+ <div class="discussion">
1025
+
1026
+ <p>Return the local y-axis as an FXVec3f instance.</p>
1027
+
1028
+
1029
+ </div>
1030
+ </div>
1031
+ <div class="tags">
1032
+
1033
+
1034
+ </div><table class="source_code">
1035
+ <tr>
1036
+ <td>
1037
+ <pre class="lines">
1038
+
1039
+
1040
+ 106</pre>
1041
+ </td>
1042
+ <td>
1043
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 106</span>
1044
+
1045
+ <span class='kw'>def</span> <span class='id identifier rubyid_getYAxis'>getYAxis</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1046
+ </td>
1047
+ </tr>
1048
+ </table>
1049
+ </div>
1050
+
1051
+ <div class="method_details ">
1052
+ <h3 class="signature " id="getZAxis-instance_method">
1053
+
1054
+ #<strong>getZAxis</strong> &#x21d2; <tt>Object</tt>
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+ </h3><div class="docstring">
1061
+ <div class="discussion">
1062
+
1063
+ <p>Return the local z-axis as an FXVec3f instance.</p>
1064
+
1065
+
1066
+ </div>
1067
+ </div>
1068
+ <div class="tags">
1069
+
1070
+
1071
+ </div><table class="source_code">
1072
+ <tr>
1073
+ <td>
1074
+ <pre class="lines">
1075
+
1076
+
1077
+ 109</pre>
1078
+ </td>
1079
+ <td>
1080
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 109</span>
1081
+
1082
+ <span class='kw'>def</span> <span class='id identifier rubyid_getZAxis'>getZAxis</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1083
+ </td>
1084
+ </tr>
1085
+ </table>
1086
+ </div>
1087
+
1088
+ <div class="method_details ">
1089
+ <h3 class="signature " id="invert-instance_method">
1090
+
1091
+ #<strong>invert</strong> &#x21d2; <tt>Object</tt>
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+ </h3><div class="docstring">
1098
+ <div class="discussion">
1099
+
1100
+ <p>Return the inverse of this quaternion (a new FXQuatf instance).</p>
1101
+
1102
+
1103
+ </div>
1104
+ </div>
1105
+ <div class="tags">
1106
+
1107
+
1108
+ </div><table class="source_code">
1109
+ <tr>
1110
+ <td>
1111
+ <pre class="lines">
1112
+
1113
+
1114
+ 124</pre>
1115
+ </td>
1116
+ <td>
1117
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 124</span>
1118
+
1119
+ <span class='kw'>def</span> <span class='id identifier rubyid_invert'>invert</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1120
+ </td>
1121
+ </tr>
1122
+ </table>
1123
+ </div>
1124
+
1125
+ <div class="method_details ">
1126
+ <h3 class="signature " id="lerp!-instance_method">
1127
+
1128
+ #<strong>lerp!</strong>(u, v, f) &#x21d2; <tt>Object</tt>
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+ </h3><div class="docstring">
1135
+ <div class="discussion">
1136
+
1137
+ <p>Spherical lerp, return reference to self.</p>
1138
+
1139
+ <h4 id="label-Parameters-3A">Parameters:</h4>
1140
+ <dl class="rdoc-list note-list"><dt><code>u</code>
1141
+ <dd>
1142
+ <p><span class='object_link'><a href="" title="Fox::FXQuatf (class)">Fox::FXQuatf</a></span></p>
1143
+ </dd><dt><code>v</code>
1144
+ <dd>
1145
+ <p><span class='object_link'><a href="" title="Fox::FXQuatf (class)">Fox::FXQuatf</a></span></p>
1146
+ </dd><dt><code>f</code>
1147
+ <dd><dl class="rdoc-list label-list"><dt>Float
1148
+ <dd></dd></dl>
1149
+ </dd></dl>
1150
+
1151
+
1152
+ </div>
1153
+ </div>
1154
+ <div class="tags">
1155
+
1156
+
1157
+ </div><table class="source_code">
1158
+ <tr>
1159
+ <td>
1160
+ <pre class="lines">
1161
+
1162
+
1163
+ 171</pre>
1164
+ </td>
1165
+ <td>
1166
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 171</span>
1167
+
1168
+ <span class='kw'>def</span> <span class='id identifier rubyid_lerp!'>lerp!</span><span class='lparen'>(</span><span class='id identifier rubyid_u'>u</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='comma'>,</span> <span class='id identifier rubyid_f'>f</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1169
+ </td>
1170
+ </tr>
1171
+ </table>
1172
+ </div>
1173
+
1174
+ <div class="method_details ">
1175
+ <h3 class="signature " id="log-instance_method">
1176
+
1177
+ #<strong>log</strong> &#x21d2; <tt>Object</tt>
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+ </h3><div class="docstring">
1184
+ <div class="discussion">
1185
+
1186
+ <p>Return the logarithm of this quaternion (a new FXQuatf instance).</p>
1187
+
1188
+
1189
+ </div>
1190
+ </div>
1191
+ <div class="tags">
1192
+
1193
+
1194
+ </div><table class="source_code">
1195
+ <tr>
1196
+ <td>
1197
+ <pre class="lines">
1198
+
1199
+
1200
+ 119</pre>
1201
+ </td>
1202
+ <td>
1203
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 119</span>
1204
+
1205
+ <span class='kw'>def</span> <span class='id identifier rubyid_log'>log</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1206
+ </td>
1207
+ </tr>
1208
+ </table>
1209
+ </div>
1210
+
1211
+ <div class="method_details ">
1212
+ <h3 class="signature " id="setAxes-instance_method">
1213
+
1214
+ #<strong>setAxes</strong>(ex, ey, ez) &#x21d2; <tt>Object</tt>
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+ </h3><div class="docstring">
1221
+ <div class="discussion">
1222
+
1223
+ <p>Set quaternion from axes (where <em>ex</em>, <em>ey</em> and <em>ez</em> are FXVec3f instances).</p>
1224
+
1225
+
1226
+ </div>
1227
+ </div>
1228
+ <div class="tags">
1229
+
1230
+
1231
+ </div><table class="source_code">
1232
+ <tr>
1233
+ <td>
1234
+ <pre class="lines">
1235
+
1236
+
1237
+ 97</pre>
1238
+ </td>
1239
+ <td>
1240
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 97</span>
1241
+
1242
+ <span class='kw'>def</span> <span class='id identifier rubyid_setAxes'>setAxes</span><span class='lparen'>(</span><span class='id identifier rubyid_ex'>ex</span><span class='comma'>,</span> <span class='id identifier rubyid_ey'>ey</span><span class='comma'>,</span> <span class='id identifier rubyid_ez'>ez</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1243
+ </td>
1244
+ </tr>
1245
+ </table>
1246
+ </div>
1247
+
1248
+ <div class="method_details ">
1249
+ <h3 class="signature " id="setAxisAngle-instance_method">
1250
+
1251
+ #<strong>setAxisAngle</strong>(axis, phi = 0.0) &#x21d2; <tt>Object</tt>
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+ </h3><div class="docstring">
1258
+ <div class="discussion">
1259
+
1260
+ <p>Set quaternion from rotation axis and angle.</p>
1261
+
1262
+ <h4 id="label-Parameters-3A">Parameters:</h4>
1263
+ <dl class="rdoc-list note-list"><dt><code>axis</code>
1264
+ <dd>
1265
+ <p>the rotation axis <span class='object_link'><a href="FXVec3f.html" title="Fox::FXVec3f (class)">Fox::FXVec3f</a></span></p>
1266
+ </dd><dt><code>angle</code>
1267
+ <dd>
1268
+ <p>the rotation angle (in radians) [Float]</p>
1269
+ </dd></dl>
1270
+
1271
+
1272
+ </div>
1273
+ </div>
1274
+ <div class="tags">
1275
+
1276
+
1277
+ </div><table class="source_code">
1278
+ <tr>
1279
+ <td>
1280
+ <pre class="lines">
1281
+
1282
+
1283
+ 66</pre>
1284
+ </td>
1285
+ <td>
1286
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 66</span>
1287
+
1288
+ <span class='kw'>def</span> <span class='id identifier rubyid_setAxisAngle'>setAxisAngle</span><span class='lparen'>(</span><span class='id identifier rubyid_axis'>axis</span><span class='comma'>,</span> <span class='id identifier rubyid_phi'>phi</span><span class='op'>=</span><span class='float'>0.0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1289
+ </td>
1290
+ </tr>
1291
+ </table>
1292
+ </div>
1293
+
1294
+ <div class="method_details ">
1295
+ <h3 class="signature " id="setRollPitchYaw-instance_method">
1296
+
1297
+ #<strong>setRollPitchYaw</strong>(roll, pitch, yaw) &#x21d2; <tt>Object</tt>
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+ </h3><div class="docstring">
1304
+ <div class="discussion">
1305
+
1306
+ <p>Set quaternion from yaw (z), pitch (y) and roll (x).</p>
1307
+
1308
+ <h4 id="label-Parameters-3A">Parameters:</h4>
1309
+ <dl class="rdoc-list note-list"><dt><code>roll</code>
1310
+ <dd>
1311
+ <p>roll angle in radians [Float]</p>
1312
+ </dd><dt><code>pitch</code>
1313
+ <dd>
1314
+ <p>pitch angle in radians [Float]</p>
1315
+ </dd><dt><code>yaw</code>
1316
+ <dd>
1317
+ <p>yaw angle in radians [Float]</p>
1318
+ </dd></dl>
1319
+
1320
+
1321
+ </div>
1322
+ </div>
1323
+ <div class="tags">
1324
+
1325
+
1326
+ </div><table class="source_code">
1327
+ <tr>
1328
+ <td>
1329
+ <pre class="lines">
1330
+
1331
+
1332
+ 87</pre>
1333
+ </td>
1334
+ <td>
1335
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 87</span>
1336
+
1337
+ <span class='kw'>def</span> <span class='id identifier rubyid_setRollPitchYaw'>setRollPitchYaw</span><span class='lparen'>(</span><span class='id identifier rubyid_roll'>roll</span><span class='comma'>,</span> <span class='id identifier rubyid_pitch'>pitch</span><span class='comma'>,</span> <span class='id identifier rubyid_yaw'>yaw</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1338
+ </td>
1339
+ </tr>
1340
+ </table>
1341
+ </div>
1342
+
1343
+ <div class="method_details ">
1344
+ <h3 class="signature " id="unitinvert-instance_method">
1345
+
1346
+ #<strong>unitinvert</strong> &#x21d2; <tt>Object</tt>
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ </h3><div class="docstring">
1353
+ <div class="discussion">
1354
+
1355
+ <p>Invert unit quaternion (returns a new FXQuatf instance).</p>
1356
+
1357
+
1358
+ </div>
1359
+ </div>
1360
+ <div class="tags">
1361
+
1362
+
1363
+ </div><table class="source_code">
1364
+ <tr>
1365
+ <td>
1366
+ <pre class="lines">
1367
+
1368
+
1369
+ 129</pre>
1370
+ </td>
1371
+ <td>
1372
+ <pre class="code"><span class="info file"># File 'rdoc-sources/FXQuatf.rb', line 129</span>
1373
+
1374
+ <span class='kw'>def</span> <span class='id identifier rubyid_unitinvert'>unitinvert</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1375
+ </td>
1376
+ </tr>
1377
+ </table>
1378
+ </div>
1379
+
1380
+ </div>
1381
+
1382
+ </div>
1383
+
1384
+ <div id="footer">
1385
+ Generated on Fri Nov 27 21:10:38 2020 by
1386
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1387
+ 0.9.24 (ruby-2.7.2).
1388
+ </div>
1389
+
1390
+ </div>
1391
+ </body>
1392
+ </html>