fxruby 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/apes02.html +6 -6
- data/doc/apes03.html +11 -11
- data/doc/book.html +1 -1
- data/doc/build.html +63 -63
- data/doc/ch03s02.html +7 -7
- data/doc/ch03s03.html +18 -18
- data/doc/ch03s04.html +11 -11
- data/doc/ch03s05.html +14 -14
- data/doc/ch04s02.html +14 -14
- data/doc/ch04s03.html +15 -15
- data/doc/ch04s04.html +28 -28
- data/doc/ch05s02.html +49 -49
- data/doc/ch05s03.html +8 -8
- data/doc/changes.html +176 -176
- data/doc/clipboardtut.html +11 -11
- data/doc/cvs.html +10 -10
- data/doc/differences.html +4 -4
- data/doc/dragdroptut.html +50 -50
- data/doc/events.html +11 -11
- data/doc/examples.html +47 -47
- data/doc/gems.html +37 -37
- data/doc/goals.html +4 -4
- data/doc/images/iconlist-bigicons.png +0 -0
- data/doc/images/iconlist-details.png +0 -0
- data/doc/implementation.html +4 -4
- data/doc/infosources.html +6 -6
- data/doc/library.html +19 -19
- data/doc/opengl.html +31 -31
- data/doc/pt01.html +1 -1
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +15 -15
- data/doc/todo.html +5 -5
- data/doc/tutorial1.html +34 -34
- data/examples/dilbert.rb +1 -1
- data/ext/fox14/FXRbApp.cpp +1 -1
- data/ext/fox14/FXRbDataTarget.cpp +1 -1
- data/ext/fox14/FXRbGLViewer.cpp +1 -1
- data/ext/fox14/FXRuby.cpp +1 -1
- data/ext/fox14/core_wrap.cpp +0 -12
- data/ext/fox14/dialogs_wrap.cpp +43 -19
- data/ext/fox14/frames_wrap.cpp +1130 -308
- data/ext/fox14/fx3d_wrap.cpp +38 -13
- data/ext/fox14/icons_wrap.cpp +24 -6
- data/ext/fox14/image_wrap.cpp +24 -6
- data/ext/fox14/include/FXMemoryBuffer.h +1 -1
- data/ext/fox14/include/FXRb4Splitter.h +1 -1
- data/ext/fox14/include/FXRb7Segment.h +1 -1
- data/ext/fox14/include/FXRbAccelTable.h +1 -1
- data/ext/fox14/include/FXRbApp.h +1 -1
- data/ext/fox14/include/FXRbArrowButton.h +1 -1
- data/ext/fox14/include/FXRbBMPIcon.h +1 -1
- data/ext/fox14/include/FXRbBMPImage.h +1 -1
- data/ext/fox14/include/FXRbBitmap.h +1 -1
- data/ext/fox14/include/FXRbBitmapFrame.h +1 -1
- data/ext/fox14/include/FXRbBitmapView.h +1 -1
- data/ext/fox14/include/FXRbButton.h +1 -1
- data/ext/fox14/include/FXRbCURCursor.h +1 -1
- data/ext/fox14/include/FXRbCanvas.h +1 -1
- data/ext/fox14/include/FXRbCheckButton.h +1 -1
- data/ext/fox14/include/FXRbChoiceBox.h +1 -1
- data/ext/fox14/include/FXRbColorBar.h +1 -1
- data/ext/fox14/include/FXRbColorDialog.h +1 -1
- data/ext/fox14/include/FXRbColorSelector.h +1 -1
- data/ext/fox14/include/FXRbColorWell.h +1 -1
- data/ext/fox14/include/FXRbColorWheel.h +1 -1
- data/ext/fox14/include/FXRbComboBox.h +1 -1
- data/ext/fox14/include/FXRbCommon.h +1 -1
- data/ext/fox14/include/FXRbComposite.h +1 -1
- data/ext/fox14/include/FXRbCursor.h +1 -1
- data/ext/fox14/include/FXRbDC.h +1 -1
- data/ext/fox14/include/FXRbDCPrint.h +1 -1
- data/ext/fox14/include/FXRbDCWindow.h +1 -1
- data/ext/fox14/include/FXRbDataTarget.h +1 -1
- data/ext/fox14/include/FXRbDebugTarget.h +1 -1
- data/ext/fox14/include/FXRbDelegator.h +1 -1
- data/ext/fox14/include/FXRbDial.h +1 -1
- data/ext/fox14/include/FXRbDialogBox.h +1 -1
- data/ext/fox14/include/FXRbDict.h +1 -1
- data/ext/fox14/include/FXRbDirBox.h +1 -1
- data/ext/fox14/include/FXRbDirDialog.h +1 -1
- data/ext/fox14/include/FXRbDirList.h +1 -1
- data/ext/fox14/include/FXRbDirSelector.h +1 -1
- data/ext/fox14/include/FXRbDockBar.h +1 -1
- data/ext/fox14/include/FXRbDockHandler.h +1 -1
- data/ext/fox14/include/FXRbDockSite.h +1 -1
- data/ext/fox14/include/FXRbDockTitle.h +1 -1
- data/ext/fox14/include/FXRbDocument.h +1 -1
- data/ext/fox14/include/FXRbDragCorner.h +1 -1
- data/ext/fox14/include/FXRbDrawable.h +1 -1
- data/ext/fox14/include/FXRbDriveBox.h +1 -1
- data/ext/fox14/include/FXRbFileDialog.h +1 -1
- data/ext/fox14/include/FXRbFileDict.h +1 -1
- data/ext/fox14/include/FXRbFileList.h +1 -1
- data/ext/fox14/include/FXRbFileSelector.h +1 -1
- data/ext/fox14/include/FXRbFoldingList.h +1 -1
- data/ext/fox14/include/FXRbFont.h +1 -1
- data/ext/fox14/include/FXRbFontDialog.h +1 -1
- data/ext/fox14/include/FXRbFontSelector.h +1 -1
- data/ext/fox14/include/FXRbFrame.h +1 -1
- data/ext/fox14/include/FXRbGIFCursor.h +1 -1
- data/ext/fox14/include/FXRbGIFIcon.h +1 -1
- data/ext/fox14/include/FXRbGIFImage.h +1 -1
- data/ext/fox14/include/FXRbGLCanvas.h +1 -1
- data/ext/fox14/include/FXRbGLContext.h +1 -1
- data/ext/fox14/include/FXRbGLObject.h +1 -1
- data/ext/fox14/include/FXRbGLShape.h +1 -1
- data/ext/fox14/include/FXRbGLViewer.h +1 -1
- data/ext/fox14/include/FXRbGLVisual.h +1 -1
- data/ext/fox14/include/FXRbGradientBar.h +1 -1
- data/ext/fox14/include/FXRbGroupBox.h +1 -1
- data/ext/fox14/include/FXRbHeader.h +1 -1
- data/ext/fox14/include/FXRbHorizontalFrame.h +1 -1
- data/ext/fox14/include/FXRbICOIcon.h +1 -1
- data/ext/fox14/include/FXRbICOImage.h +1 -1
- data/ext/fox14/include/FXRbIcon.h +1 -1
- data/ext/fox14/include/FXRbIconList.h +1 -1
- data/ext/fox14/include/FXRbIconSource.h +1 -1
- data/ext/fox14/include/FXRbId.h +1 -1
- data/ext/fox14/include/FXRbImage.h +1 -1
- data/ext/fox14/include/FXRbImageFrame.h +1 -1
- data/ext/fox14/include/FXRbImageView.h +1 -1
- data/ext/fox14/include/FXRbInputDialog.h +1 -1
- data/ext/fox14/include/FXRbJPGIcon.h +1 -1
- data/ext/fox14/include/FXRbJPGImage.h +1 -1
- data/ext/fox14/include/FXRbLabel.h +1 -1
- data/ext/fox14/include/FXRbList.h +1 -1
- data/ext/fox14/include/FXRbListBox.h +1 -1
- data/ext/fox14/include/FXRbMDIButton.h +1 -1
- data/ext/fox14/include/FXRbMDIChild.h +1 -1
- data/ext/fox14/include/FXRbMDIClient.h +1 -1
- data/ext/fox14/include/FXRbMainWindow.h +1 -1
- data/ext/fox14/include/FXRbMatrix.h +1 -1
- data/ext/fox14/include/FXRbMenuBar.h +1 -1
- data/ext/fox14/include/FXRbMenuButton.h +1 -1
- data/ext/fox14/include/FXRbMenuCaption.h +1 -1
- data/ext/fox14/include/FXRbMenuCascade.h +1 -1
- data/ext/fox14/include/FXRbMenuCheck.h +1 -1
- data/ext/fox14/include/FXRbMenuCommand.h +1 -1
- data/ext/fox14/include/FXRbMenuPane.h +1 -1
- data/ext/fox14/include/FXRbMenuRadio.h +1 -1
- data/ext/fox14/include/FXRbMenuSeparator.h +1 -1
- data/ext/fox14/include/FXRbMenuTitle.h +1 -1
- data/ext/fox14/include/FXRbMessageBox.h +1 -1
- data/ext/fox14/include/FXRbObject.h +1 -1
- data/ext/fox14/include/FXRbOptionMenu.h +1 -1
- data/ext/fox14/include/FXRbPCXIcon.h +1 -1
- data/ext/fox14/include/FXRbPCXImage.h +1 -1
- data/ext/fox14/include/FXRbPNGIcon.h +1 -1
- data/ext/fox14/include/FXRbPNGImage.h +1 -1
- data/ext/fox14/include/FXRbPPMIcon.h +1 -1
- data/ext/fox14/include/FXRbPPMImage.h +1 -1
- data/ext/fox14/include/FXRbPacker.h +1 -1
- data/ext/fox14/include/FXRbPicker.h +1 -1
- data/ext/fox14/include/FXRbPopup.h +1 -1
- data/ext/fox14/include/FXRbPrintDialog.h +1 -1
- data/ext/fox14/include/FXRbProgressBar.h +1 -1
- data/ext/fox14/include/FXRbProgressDialog.h +1 -1
- data/ext/fox14/include/FXRbRGBIcon.h +1 -1
- data/ext/fox14/include/FXRbRGBImage.h +1 -1
- data/ext/fox14/include/FXRbRadioButton.h +1 -1
- data/ext/fox14/include/FXRbRealSlider.h +1 -1
- data/ext/fox14/include/FXRbRealSpinner.h +1 -1
- data/ext/fox14/include/FXRbRecentFiles.h +1 -1
- data/ext/fox14/include/FXRbRegistry.h +1 -1
- data/ext/fox14/include/FXRbReplaceDialog.h +1 -1
- data/ext/fox14/include/FXRbRootWindow.h +1 -1
- data/ext/fox14/include/FXRbRuler.h +1 -1
- data/ext/fox14/include/FXRbScintilla.h +1 -1
- data/ext/fox14/include/FXRbScrollArea.h +1 -1
- data/ext/fox14/include/FXRbScrollBar.h +1 -1
- data/ext/fox14/include/FXRbScrollPane.h +1 -1
- data/ext/fox14/include/FXRbScrollWindow.h +1 -1
- data/ext/fox14/include/FXRbSearchDialog.h +1 -1
- data/ext/fox14/include/FXRbSeparator.h +1 -1
- data/ext/fox14/include/FXRbSettings.h +1 -1
- data/ext/fox14/include/FXRbShell.h +1 -1
- data/ext/fox14/include/FXRbShutter.h +1 -1
- data/ext/fox14/include/FXRbSlider.h +1 -1
- data/ext/fox14/include/FXRbSpinner.h +1 -1
- data/ext/fox14/include/FXRbSplashWindow.h +1 -1
- data/ext/fox14/include/FXRbSplitter.h +1 -1
- data/ext/fox14/include/FXRbSpring.h +1 -1
- data/ext/fox14/include/FXRbStatusBar.h +1 -1
- data/ext/fox14/include/FXRbStatusLine.h +1 -1
- data/ext/fox14/include/FXRbStream.h +1 -1
- data/ext/fox14/include/FXRbStringDict.h +1 -1
- data/ext/fox14/include/FXRbSwitcher.h +1 -1
- data/ext/fox14/include/FXRbTGAIcon.h +1 -1
- data/ext/fox14/include/FXRbTGAImage.h +1 -1
- data/ext/fox14/include/FXRbTIFIcon.h +1 -1
- data/ext/fox14/include/FXRbTIFImage.h +1 -1
- data/ext/fox14/include/FXRbTabBar.h +1 -1
- data/ext/fox14/include/FXRbTabBook.h +1 -1
- data/ext/fox14/include/FXRbTabItem.h +1 -1
- data/ext/fox14/include/FXRbTable.h +1 -1
- data/ext/fox14/include/FXRbText.h +1 -1
- data/ext/fox14/include/FXRbTextField.h +1 -1
- data/ext/fox14/include/FXRbToggleButton.h +1 -1
- data/ext/fox14/include/FXRbToolBar.h +1 -1
- data/ext/fox14/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox14/include/FXRbToolBarShell.h +1 -1
- data/ext/fox14/include/FXRbToolBarTab.h +1 -1
- data/ext/fox14/include/FXRbToolTip.h +1 -1
- data/ext/fox14/include/FXRbTopWindow.h +1 -1
- data/ext/fox14/include/FXRbTreeList.h +1 -1
- data/ext/fox14/include/FXRbTreeListBox.h +1 -1
- data/ext/fox14/include/FXRbTriStateButton.h +1 -1
- data/ext/fox14/include/FXRbVerticalFrame.h +1 -1
- data/ext/fox14/include/FXRbVisual.h +1 -1
- data/ext/fox14/include/FXRbWindow.h +1 -1
- data/ext/fox14/include/FXRbWizard.h +1 -1
- data/ext/fox14/include/FXRbXBMIcon.h +1 -1
- data/ext/fox14/include/FXRbXBMImage.h +1 -1
- data/ext/fox14/include/FXRbXPMIcon.h +1 -1
- data/ext/fox14/include/FXRbXPMImage.h +1 -1
- data/ext/fox14/include/FXRuby.h +1 -1
- data/ext/fox14/label_wrap.cpp +23 -8
- data/ext/fox14/markfuncs.cpp +8 -1
- data/ext/fox14/mdi_wrap.cpp +47 -17
- data/ext/fox14/menu_wrap.cpp +34 -10
- data/ext/fox14/scintilla_wrap.cpp +31 -7
- data/ext/fox14/table_wrap.cpp +31 -7
- data/ext/fox14/text_wrap.cpp +31 -7
- data/ext/fox14/treelist_wrap.cpp +31 -7
- data/ext/fox14/ui_wrap.cpp +497 -154
- data/ext/fox14/unregisterOwnedObjects.cpp +1 -1
- data/lib/fox14/aliases.rb +3 -3
- data/lib/fox14/colors.rb +282 -282
- data/lib/fox14/core.rb +7 -0
- data/lib/fox14/splashscreen.rb +83 -83
- data/lib/fox14/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +138 -138
- data/rdoc-sources/FXFoldingList.rb +2 -2
- data/rdoc-sources/FXQuatd.rb +171 -1
- data/rdoc-sources/FXQuatf.rb +175 -1
- data/rdoc-sources/FXWindow.rb +0 -3
- data/tests/TC_FXComboBox.rb +10 -1
- data/tests/TC_FXDirList.rb +1 -1
- data/tests/TC_FXGLViewer.rb +2 -0
- data/tests/TC_FXHeader.rb +1 -1
- data/tests/TC_FXIconList.rb +1 -1
- data/tests/TC_FXId.rb +1 -1
- data/tests/TC_FXListBox.rb +1 -1
- data/tests/TC_FXMenuCommand.rb +0 -14
- data/tests/TC_FXTable.rb +0 -32
- data/tests/TC_FXTableItem.rb +1 -1
- data/tests/TC_FXTreeList.rb +1 -1
- data/tests/TC_FXTreeListBox.rb +1 -1
- data/web/top.html +15 -15
- metadata +2 -3
- data/ChangeLog +0 -11094
@@ -458,12 +458,12 @@ module Fox
|
|
458
458
|
# Collapse sub-tree rooted at _tree_.
|
459
459
|
# If _notify_ is +true+, a +SEL_COLLAPSED+ message is sent to the list's
|
460
460
|
# message target after the sub-tree is collapsed.
|
461
|
-
def
|
461
|
+
def collapseTree(tree, notify=false); end
|
462
462
|
|
463
463
|
# Expand sub-tree rooted at _tree_.
|
464
464
|
# If _notify_ is +true+, a +SEL_EXPANDED+ message is sent to the list's
|
465
465
|
# message target after the sub-tree is expanded.
|
466
|
-
def
|
466
|
+
def expandTree(tree, notify=false); end
|
467
467
|
|
468
468
|
# Change current item.
|
469
469
|
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's
|
data/rdoc-sources/FXQuatd.rb
CHANGED
@@ -1 +1,171 @@
|
|
1
|
-
module Fox
|
2
1
|
class FXQuatd < FXVec4d
|
3
2
|
# Return an initialized FXQuatd instance.
|
4
3
|
def initialize; end
|
5
4
|
|
6
5
|
#
|
7
6
|
# Construct an FXQuatd instance from a rotation axis and angle.
|
8
7
|
#
|
9
8
|
# ==== Parameters:
|
10
9
|
#
|
11
10
|
# +axis+:: the rotation axis [FXVec3d]
|
12
11
|
# +angle+:: the rotation angle (in radians) [Float]
|
13
12
|
#
|
14
13
|
def initialize(axis, phi=0.0); end
|
15
14
|
|
16
15
|
#
|
17
16
|
# Construct an FXQuatd from components.
|
18
17
|
#
|
19
18
|
# ==== Parameters:
|
20
19
|
#
|
21
20
|
# +x+:: x [Float]
|
22
21
|
# +y+:: y [Float]
|
23
22
|
# +z+:: z [Float]
|
24
23
|
# +w+:: w [Float]
|
25
24
|
#
|
26
25
|
def initialize(x, y, z, w); end
|
27
26
|
|
28
27
|
# Construct an FXQuatd from an array of Floats.
|
29
28
|
def initialize(floats); end
|
30
29
|
#
|
31
30
|
# Construct from Euler angles yaw (z), pitch (y) and roll (x).
|
32
31
|
#
|
33
32
|
# ==== Parameters:
|
34
33
|
#
|
35
34
|
# +roll+:: roll angle in radians [Float]
|
36
35
|
# +pitch+:: pitch angle in radians [Float]
|
37
36
|
# +yaw+:: yaw angle in radians [Float]
|
38
37
|
#
|
39
38
|
def initialize(roll, pitch, yaw); end
|
40
39
|
|
41
40
|
# Construct quaternion from axes; _ex_, _ey_ and _ez_ are all FXVec3d
|
42
41
|
# instances.
|
43
42
|
def initialize(ex, ey, ez); end
|
44
43
|
#
|
45
44
|
# Construct quaternion from 3x3 matrix; _mat_ is an FXMat3d instance.
|
46
45
|
#
|
47
46
|
def FXQuatd.fromMatrix(mat); end
|
48
47
|
# Adjust quaternion length; returns a reference to self.
|
49
48
|
def adjust!; end
|
50
49
|
|
51
50
|
#
|
52
51
|
# Set quaternion from rotation axis and angle.
|
53
52
|
#
|
54
53
|
# ==== Parameters:
|
55
54
|
#
|
56
55
|
# +axis+:: the rotation axis [FXVec3d]
|
57
56
|
# +angle+:: the rotation angle (in radians) [Float]
|
58
57
|
#
|
59
58
|
def setAxisAngle(axis, phi=0.0); end
|
60
59
|
|
61
60
|
#
|
62
61
|
# Return the rotation axis and angle for this quaternion, i.e.
|
63
62
|
#
|
64
63
|
# axis, angle = aQuaternion.getAxisAngle()
|
65
64
|
#
|
66
65
|
# where _axis_ is an FXVec3d instance and _angle_ is the angle
|
67
66
|
# of rotation in radians.
|
68
67
|
#
|
69
68
|
def getAxisAngle(); end
|
70
69
|
|
71
70
|
#
|
72
71
|
# Set quaternion from yaw (z), pitch (y) and roll (x).
|
73
72
|
#
|
74
73
|
# ==== Parameters:
|
75
74
|
#
|
76
75
|
# +roll+:: roll angle in radians [Float]
|
77
76
|
# +pitch+:: pitch angle in radians [Float]
|
78
77
|
# +yaw+:: yaw angle in radians [Float]
|
79
78
|
#
|
80
79
|
def setRollPitchYaw(roll, pitch, yaw); end
|
81
80
|
|
82
81
|
#
|
83
82
|
# Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.
|
84
83
|
#
|
85
84
|
# roll, pitch, yaw = aQuaternion.getRollPitchYaw()
|
86
85
|
#
|
87
86
|
def getRollPitchYaw(); end
|
88
87
|
|
89
88
|
# Set quaternion from axes; _ex_, _ey_ and _ez_ are all FXVec3d instances.
|
90
89
|
def setAxes(ex, ey, ez); end
|
91
90
|
# Get quaternion axes; returns a 3-element array of FXVec3d instances.
|
92
91
|
def getAxes(); end
|
93
92
|
# Obtain local x axis (an FXVec3d instance).
|
94
93
|
def getXAxis(); end
|
95
94
|
# Obtain local y axis (an FXVec3d instance).
|
96
95
|
def getYAxis(); end
|
97
96
|
# Obtain local z axis (an FXVec3d instance).
|
98
97
|
def getZAxis(); end
|
99
98
|
#
|
100
99
|
# Return the exponentiation of this quaternion (a new FXQuatd instance).
|
101
100
|
#
|
102
101
|
def exp; end
|
103
102
|
|
104
103
|
#
|
105
104
|
# Return the logarithm of this quaternion (a new FXQuatd instance).
|
106
105
|
#
|
107
106
|
def log; end
|
108
107
|
|
109
108
|
#
|
110
109
|
# Return the inverse of this quaternion (a new FXQuatd instance).
|
111
110
|
#
|
112
111
|
def invert; end
|
113
112
|
|
114
113
|
#
|
115
114
|
# Invert unit quaternion (returns a new FXQuatd instance).
|
116
115
|
#
|
117
116
|
def unitinvert; end
|
118
117
|
|
119
118
|
#
|
120
119
|
# Return the conjugate of this quaternion (a new FXQuatd instance).
|
121
120
|
#
|
122
121
|
def conj; end
|
123
122
|
|
124
123
|
#
|
125
124
|
# Return the product of this quaternion and _other_ (another FXQuatd instance).
|
126
125
|
#
|
127
126
|
def *(other); end
|
128
127
|
|
129
128
|
#
|
130
129
|
# Compute the rotation of a vector _vec_ by this quaternion; returns the
|
131
130
|
# rotated vector (a new FXVec3d instance).
|
132
131
|
#
|
133
132
|
# ==== Parameters:
|
134
133
|
#
|
135
134
|
# +vec+:: the vector to be rotated [FXVec3d]
|
136
135
|
#
|
137
136
|
def *(vec); end
|
138
137
|
|
139
138
|
#
|
140
139
|
# Construct a quaternion from arc a->b on unit sphere.
|
141
140
|
#
|
142
141
|
# ==== Parameters:
|
143
142
|
#
|
144
143
|
# +a+:: [FXVec3d]
|
145
144
|
# +b+:: [FXVec3d]
|
146
145
|
#
|
147
146
|
def FXQuatd.arc(a, b); end
|
148
147
|
|
149
148
|
#
|
150
149
|
# Spherical lerp.
|
151
150
|
#
|
152
151
|
# ==== Parameters:
|
153
152
|
#
|
154
153
|
# +u+:: [FXQuatd]
|
155
154
|
# +v+:: [FXQuatd]
|
156
155
|
# +f+:: [Float]
|
157
156
|
#
|
158
157
|
def FXQuatd.lerp(u, v, f); end
|
159
158
|
|
160
159
|
# Convert to matrix (returns an FXMat3d instance).
|
161
160
|
def toMatrix; end
|
162
161
|
end
|
162
|
+
module Fox
|
163
|
+
class FXQuatd < FXVec4d
|
164
|
+
# Return an initialized FXQuatd instance.
|
165
|
+
def initialize; end
|
166
|
+
|
167
|
+
#
|
168
|
+
# Construct an FXQuatd instance from a rotation axis and angle.
|
169
|
+
#
|
170
|
+
# ==== Parameters:
|
171
|
+
#
|
172
|
+
# +axis+:: the rotation axis [FXVec3d]
|
173
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
174
|
+
#
|
175
|
+
def initialize(axis, phi=0.0); end
|
176
|
+
|
177
|
+
#
|
178
|
+
# Construct an FXQuatd from components.
|
179
|
+
#
|
180
|
+
# ==== Parameters:
|
181
|
+
#
|
182
|
+
# +x+:: x [Float]
|
183
|
+
# +y+:: y [Float]
|
184
|
+
# +z+:: z [Float]
|
185
|
+
# +w+:: w [Float]
|
186
|
+
#
|
187
|
+
def initialize(x, y, z, w); end
|
188
|
+
|
189
|
+
# Construct an FXQuatd from an array of Floats.
|
190
|
+
def initialize(floats); end
|
191
|
+
|
192
|
+
#
|
193
|
+
# Construct from Euler angles yaw (z), pitch (y) and roll (x).
|
194
|
+
#
|
195
|
+
# ==== Parameters:
|
196
|
+
#
|
197
|
+
# +roll+:: roll angle in radians [Float]
|
198
|
+
# +pitch+:: pitch angle in radians [Float]
|
199
|
+
# +yaw+:: yaw angle in radians [Float]
|
200
|
+
#
|
201
|
+
def initialize(roll, pitch, yaw); end
|
202
|
+
|
203
|
+
# Construct quaternion from axes; _ex_, _ey_ and _ez_ are all FXVec3d
|
204
|
+
# instances.
|
205
|
+
def initialize(ex, ey, ez); end
|
206
|
+
|
207
|
+
#
|
208
|
+
# Construct quaternion from 3x3 matrix; _mat_ is an FXMat3d instance.
|
209
|
+
#
|
210
|
+
def FXQuatd.fromMatrix(mat); end
|
211
|
+
|
212
|
+
# Adjust quaternion length; returns a reference to self.
|
213
|
+
def adjust!; end
|
214
|
+
|
215
|
+
#
|
216
|
+
# Set quaternion from rotation axis and angle.
|
217
|
+
#
|
218
|
+
# ==== Parameters:
|
219
|
+
#
|
220
|
+
# +axis+:: the rotation axis [FXVec3d]
|
221
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
222
|
+
#
|
223
|
+
def setAxisAngle(axis, phi=0.0); end
|
224
|
+
|
225
|
+
#
|
226
|
+
# Return the rotation axis and angle for this quaternion, i.e.
|
227
|
+
#
|
228
|
+
# axis, angle = aQuaternion.getAxisAngle()
|
229
|
+
#
|
230
|
+
# where _axis_ is an FXVec3d instance and _angle_ is the angle
|
231
|
+
# of rotation in radians.
|
232
|
+
#
|
233
|
+
def getAxisAngle(); end
|
234
|
+
|
235
|
+
#
|
236
|
+
# Set quaternion from yaw (z), pitch (y) and roll (x).
|
237
|
+
#
|
238
|
+
# ==== Parameters:
|
239
|
+
#
|
240
|
+
# +roll+:: roll angle in radians [Float]
|
241
|
+
# +pitch+:: pitch angle in radians [Float]
|
242
|
+
# +yaw+:: yaw angle in radians [Float]
|
243
|
+
#
|
244
|
+
def setRollPitchYaw(roll, pitch, yaw); end
|
245
|
+
|
246
|
+
#
|
247
|
+
# Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.
|
248
|
+
#
|
249
|
+
# roll, pitch, yaw = aQuaternion.getRollPitchYaw()
|
250
|
+
#
|
251
|
+
def getRollPitchYaw(); end
|
252
|
+
|
253
|
+
# Set quaternion from axes; _ex_, _ey_ and _ez_ are all FXVec3d instances.
|
254
|
+
def setAxes(ex, ey, ez); end
|
255
|
+
|
256
|
+
# Get quaternion axes; returns a 3-element array of FXVec3d instances.
|
257
|
+
def getAxes(); end
|
258
|
+
|
259
|
+
# Obtain local x axis (an FXVec3d instance).
|
260
|
+
def getXAxis(); end
|
261
|
+
|
262
|
+
# Obtain local y axis (an FXVec3d instance).
|
263
|
+
def getYAxis(); end
|
264
|
+
|
265
|
+
# Obtain local z axis (an FXVec3d instance).
|
266
|
+
def getZAxis(); end
|
267
|
+
|
268
|
+
#
|
269
|
+
# Return the exponentiation of this quaternion (a new FXQuatd instance).
|
270
|
+
#
|
271
|
+
def exp; end
|
272
|
+
|
273
|
+
#
|
274
|
+
# Return the logarithm of this quaternion (a new FXQuatd instance).
|
275
|
+
#
|
276
|
+
def log; end
|
277
|
+
|
278
|
+
#
|
279
|
+
# Return the inverse of this quaternion (a new FXQuatd instance).
|
280
|
+
#
|
281
|
+
def invert; end
|
282
|
+
|
283
|
+
#
|
284
|
+
# Invert unit quaternion (returns a new FXQuatd instance).
|
285
|
+
#
|
286
|
+
def unitinvert; end
|
287
|
+
|
288
|
+
#
|
289
|
+
# Return the conjugate of this quaternion (a new FXQuatd instance).
|
290
|
+
#
|
291
|
+
def conj; end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Return the product of this quaternion and _other_ (another FXQuatd instance).
|
295
|
+
#
|
296
|
+
def *(other); end
|
297
|
+
|
298
|
+
#
|
299
|
+
# Compute the rotation of a vector _vec_ by this quaternion; returns the
|
300
|
+
# rotated vector (a new FXVec3d instance).
|
301
|
+
#
|
302
|
+
# ==== Parameters:
|
303
|
+
#
|
304
|
+
# +vec+:: the vector to be rotated [FXVec3d]
|
305
|
+
#
|
306
|
+
def *(vec); end
|
307
|
+
|
308
|
+
#
|
309
|
+
# Construct a quaternion from arc a->b on unit sphere.
|
310
|
+
#
|
311
|
+
# ==== Parameters:
|
312
|
+
#
|
313
|
+
# +a+:: [FXVec3d]
|
314
|
+
# +b+:: [FXVec3d]
|
315
|
+
#
|
316
|
+
def FXQuatd.arc(a, b); end
|
317
|
+
|
318
|
+
#
|
319
|
+
# Spherical lerp.
|
320
|
+
#
|
321
|
+
# ==== Parameters:
|
322
|
+
#
|
323
|
+
# +u+:: [FXQuatd]
|
324
|
+
# +v+:: [FXQuatd]
|
325
|
+
# +f+:: [Float]
|
326
|
+
#
|
327
|
+
def FXQuatd.lerp(u, v, f); end
|
328
|
+
|
329
|
+
# Convert to matrix (returns an FXMat3d instance).
|
330
|
+
def toMatrix; end
|
331
|
+
end
|
332
|
+
end
|
data/rdoc-sources/FXQuatf.rb
CHANGED
@@ -1 +1,175 @@
|
|
1
|
-
module Fox
|
2
1
|
class FXQuatf < FXVec4f
|
3
2
|
# Return an initialized FXQuatf instance.
|
4
3
|
def initialize; end
|
5
4
|
|
6
5
|
#
|
7
6
|
# Construct an FXQuatf instance from a rotation axis and angle.
|
8
7
|
#
|
9
8
|
# ==== Parameters:
|
10
9
|
#
|
11
10
|
# +axis+:: the rotation axis [FXVec3f]
|
12
11
|
# +angle+:: the rotation angle (in radians) [Float]
|
13
12
|
#
|
14
13
|
def initialize(axis, phi=0.0); end
|
15
14
|
|
16
15
|
#
|
17
16
|
# Construct from Euler angles yaw (z), pitch (y) and roll (x).
|
18
17
|
#
|
19
18
|
# ==== Parameters:
|
20
19
|
#
|
21
20
|
# +roll+:: roll angle in radians [Float]
|
22
21
|
# +pitch+:: pitch angle in radians [Float]
|
23
22
|
# +yaw+:: yaw angle in radians [Float]
|
24
23
|
#
|
25
24
|
def initialize(roll, pitch, yaw); end
|
26
25
|
#
|
27
26
|
# Construct quaternion from axes
|
28
27
|
#
|
29
28
|
# ==== Parameters:
|
30
29
|
#
|
31
30
|
# +ex+:: x-axis [FXVec3f]
|
32
31
|
# +ey+:: y-axis [FXVec3f]
|
33
32
|
# +ez+:: z-axis [FXVec3f]
|
34
33
|
#
|
35
34
|
def initialize(ex, ey, ez); end
|
36
35
|
|
37
36
|
#
|
38
37
|
# Construct quaternion from 3x3 matrix (where _mat_ is an FXMat3f instance).
|
39
38
|
#
|
40
39
|
def initialize(mat); end
|
41
40
|
#
|
42
41
|
# Construct an FXQuatf from components.
|
43
42
|
#
|
44
43
|
# ==== Parameters:
|
45
44
|
#
|
46
45
|
# +x+:: x [Float]
|
47
46
|
# +y+:: y [Float]
|
48
47
|
# +z+:: z [Float]
|
49
48
|
# +w+:: w [Float]
|
50
49
|
#
|
51
50
|
def initialize(x, y, z, w); end
|
52
51
|
|
53
52
|
# Adjust quaternion length; returns a reference to self.
|
54
53
|
def adjust!; end
|
55
54
|
|
56
55
|
#
|
57
56
|
# Set quaternion from rotation axis and angle.
|
58
57
|
#
|
59
58
|
# ==== Parameters:
|
60
59
|
#
|
61
60
|
# +axis+:: the rotation axis [FXVec3f]
|
62
61
|
# +angle+:: the rotation angle (in radians) [Float]
|
63
62
|
#
|
64
63
|
def setAxisAngle(axis, phi=0.0); end
|
65
64
|
|
66
65
|
#
|
67
66
|
# Return the rotation axis and angle for this quaternion, i.e.
|
68
67
|
#
|
69
68
|
# axis, angle = aQuaternion.getAxisAngle()
|
70
69
|
#
|
71
70
|
# where _axis_ is an FXVec3f instance and _angle_ is the angle
|
72
71
|
# of rotation in radians.
|
73
72
|
#
|
74
73
|
def getAxisAngle(); end
|
75
74
|
|
76
75
|
#
|
77
76
|
# Set quaternion from yaw (z), pitch (y) and roll (x).
|
78
77
|
#
|
79
78
|
# ==== Parameters:
|
80
79
|
#
|
81
80
|
# +roll+:: roll angle in radians [Float]
|
82
81
|
# +pitch+:: pitch angle in radians [Float]
|
83
82
|
# +yaw+:: yaw angle in radians [Float]
|
84
83
|
#
|
85
84
|
def setRollPitchYaw(roll, pitch, yaw); end
|
86
85
|
|
87
86
|
#
|
88
87
|
# Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.
|
89
88
|
#
|
90
89
|
# roll, pitch, yaw = aQuaternion.getRollPitchYaw()
|
91
90
|
#
|
92
91
|
def getRollPitchYaw(); end
|
93
92
|
|
94
93
|
# Set quaternion from axes (where _ex_, _ey_ and _ez_ are FXVec3f instances).
|
95
94
|
def setAxes(ex, ey, ez); end
|
96
95
|
|
97
96
|
# Get quaternion axes as a 3-element array of FXVec3f instances.
|
98
97
|
def getAxes(); end
|
99
98
|
# Return the local x-axis as an FXVec3f instance.
|
100
99
|
def getXAxis(); end
|
101
100
|
# Return the local y-axis as an FXVec3f instance.
|
102
101
|
def getYAxis(); end
|
103
102
|
# Return the local z-axis as an FXVec3f instance.
|
104
103
|
def getZAxis(); end
|
105
104
|
#
|
106
105
|
# Return the exponentiation of this quaternion (a new FXQuatf instance).
|
107
106
|
#
|
108
107
|
def exp; end
|
109
108
|
|
110
109
|
#
|
111
110
|
# Return the logarithm of this quaternion (a new FXQuatf instance).
|
112
111
|
#
|
113
112
|
def log; end
|
114
113
|
|
115
114
|
#
|
116
115
|
# Return the inverse of this quaternion (a new FXQuatf instance).
|
117
116
|
#
|
118
117
|
def invert; end
|
119
118
|
|
120
119
|
#
|
121
120
|
# Invert unit quaternion (returns a new FXQuatf instance).
|
122
121
|
#
|
123
122
|
def unitinvert; end
|
124
123
|
|
125
124
|
#
|
126
125
|
# Return the conjugate of this quaternion (a new FXQuatf instance).
|
127
126
|
#
|
128
127
|
def conj; end
|
129
128
|
|
130
129
|
#
|
131
130
|
# Return the product of this quaternion and _other_ (another FXQuatf instance).
|
132
131
|
#
|
133
132
|
def *(other); end
|
134
133
|
|
135
134
|
#
|
136
135
|
# Compute the rotation of a vector _vec_ by this quaternion; returns the
|
137
136
|
# rotated vector (a new FXVec3f instance).
|
138
137
|
#
|
139
138
|
# ==== Parameters:
|
140
139
|
#
|
141
140
|
# +vec+:: the vector to be rotated [FXVec3f]
|
142
141
|
#
|
143
142
|
def *(vec); end
|
144
143
|
|
145
144
|
#
|
146
145
|
# Construct a quaternion from arc a->b on unit sphere.
|
147
146
|
#
|
148
147
|
# ==== Parameters:
|
149
148
|
#
|
150
149
|
# +a+:: [FXVec3f]
|
151
150
|
# +b+:: [FXVec3f]
|
152
151
|
#
|
153
152
|
def FXQuatf.arc(a, b); end
|
154
153
|
|
155
154
|
#
|
156
155
|
# Spherical lerp.
|
157
156
|
#
|
158
157
|
# ==== Parameters:
|
159
158
|
#
|
160
159
|
# +u+:: [FXQuatf]
|
161
160
|
# +v+:: [FXQuatf]
|
162
161
|
# +f+:: [Float]
|
163
162
|
#
|
164
163
|
def FXQuatf.lerp(u, v, f); end
|
165
164
|
|
166
165
|
# Convert to a 3x3 matrix; returns an FXMat3f instance.
|
167
166
|
def toMatrix; end
|
168
167
|
end
|
168
|
+
module Fox
|
169
|
+
class FXQuatf < FXVec4f
|
170
|
+
# Return an initialized FXQuatf instance.
|
171
|
+
def initialize; end
|
172
|
+
|
173
|
+
#
|
174
|
+
# Construct an FXQuatf instance from a rotation axis and angle.
|
175
|
+
#
|
176
|
+
# ==== Parameters:
|
177
|
+
#
|
178
|
+
# +axis+:: the rotation axis [FXVec3f]
|
179
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
180
|
+
#
|
181
|
+
def initialize(axis, phi=0.0); end
|
182
|
+
|
183
|
+
#
|
184
|
+
# Construct from Euler angles yaw (z), pitch (y) and roll (x).
|
185
|
+
#
|
186
|
+
# ==== Parameters:
|
187
|
+
#
|
188
|
+
# +roll+:: roll angle in radians [Float]
|
189
|
+
# +pitch+:: pitch angle in radians [Float]
|
190
|
+
# +yaw+:: yaw angle in radians [Float]
|
191
|
+
#
|
192
|
+
def initialize(roll, pitch, yaw); end
|
193
|
+
|
194
|
+
#
|
195
|
+
# Construct quaternion from axes
|
196
|
+
#
|
197
|
+
# ==== Parameters:
|
198
|
+
#
|
199
|
+
# +ex+:: x-axis [FXVec3f]
|
200
|
+
# +ey+:: y-axis [FXVec3f]
|
201
|
+
# +ez+:: z-axis [FXVec3f]
|
202
|
+
#
|
203
|
+
def initialize(ex, ey, ez); end
|
204
|
+
|
205
|
+
#
|
206
|
+
# Construct quaternion from 3x3 matrix (where _mat_ is an FXMat3f instance).
|
207
|
+
#
|
208
|
+
def initialize(mat); end
|
209
|
+
|
210
|
+
#
|
211
|
+
# Construct an FXQuatf from components.
|
212
|
+
#
|
213
|
+
# ==== Parameters:
|
214
|
+
#
|
215
|
+
# +x+:: x [Float]
|
216
|
+
# +y+:: y [Float]
|
217
|
+
# +z+:: z [Float]
|
218
|
+
# +w+:: w [Float]
|
219
|
+
#
|
220
|
+
def initialize(x, y, z, w); end
|
221
|
+
|
222
|
+
# Adjust quaternion length; returns a reference to self.
|
223
|
+
def adjust!; end
|
224
|
+
|
225
|
+
#
|
226
|
+
# Set quaternion from rotation axis and angle.
|
227
|
+
#
|
228
|
+
# ==== Parameters:
|
229
|
+
#
|
230
|
+
# +axis+:: the rotation axis [FXVec3f]
|
231
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
232
|
+
#
|
233
|
+
def setAxisAngle(axis, phi=0.0); end
|
234
|
+
|
235
|
+
#
|
236
|
+
# Return the rotation axis and angle for this quaternion, i.e.
|
237
|
+
#
|
238
|
+
# axis, angle = aQuaternion.getAxisAngle()
|
239
|
+
#
|
240
|
+
# where _axis_ is an FXVec3f instance and _angle_ is the angle
|
241
|
+
# of rotation in radians.
|
242
|
+
#
|
243
|
+
def getAxisAngle(); end
|
244
|
+
|
245
|
+
#
|
246
|
+
# Set quaternion from yaw (z), pitch (y) and roll (x).
|
247
|
+
#
|
248
|
+
# ==== Parameters:
|
249
|
+
#
|
250
|
+
# +roll+:: roll angle in radians [Float]
|
251
|
+
# +pitch+:: pitch angle in radians [Float]
|
252
|
+
# +yaw+:: yaw angle in radians [Float]
|
253
|
+
#
|
254
|
+
def setRollPitchYaw(roll, pitch, yaw); end
|
255
|
+
|
256
|
+
#
|
257
|
+
# Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.
|
258
|
+
#
|
259
|
+
# roll, pitch, yaw = aQuaternion.getRollPitchYaw()
|
260
|
+
#
|
261
|
+
def getRollPitchYaw(); end
|
262
|
+
|
263
|
+
# Set quaternion from axes (where _ex_, _ey_ and _ez_ are FXVec3f instances).
|
264
|
+
def setAxes(ex, ey, ez); end
|
265
|
+
|
266
|
+
# Get quaternion axes as a 3-element array of FXVec3f instances.
|
267
|
+
def getAxes(); end
|
268
|
+
|
269
|
+
# Return the local x-axis as an FXVec3f instance.
|
270
|
+
def getXAxis(); end
|
271
|
+
|
272
|
+
# Return the local y-axis as an FXVec3f instance.
|
273
|
+
def getYAxis(); end
|
274
|
+
|
275
|
+
# Return the local z-axis as an FXVec3f instance.
|
276
|
+
def getZAxis(); end
|
277
|
+
|
278
|
+
#
|
279
|
+
# Return the exponentiation of this quaternion (a new FXQuatf instance).
|
280
|
+
#
|
281
|
+
def exp; end
|
282
|
+
|
283
|
+
#
|
284
|
+
# Return the logarithm of this quaternion (a new FXQuatf instance).
|
285
|
+
#
|
286
|
+
def log; end
|
287
|
+
|
288
|
+
#
|
289
|
+
# Return the inverse of this quaternion (a new FXQuatf instance).
|
290
|
+
#
|
291
|
+
def invert; end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Invert unit quaternion (returns a new FXQuatf instance).
|
295
|
+
#
|
296
|
+
def unitinvert; end
|
297
|
+
|
298
|
+
#
|
299
|
+
# Return the conjugate of this quaternion (a new FXQuatf instance).
|
300
|
+
#
|
301
|
+
def conj; end
|
302
|
+
|
303
|
+
#
|
304
|
+
# Return the product of this quaternion and _other_ (another FXQuatf instance).
|
305
|
+
#
|
306
|
+
def *(other); end
|
307
|
+
|
308
|
+
#
|
309
|
+
# Compute the rotation of a vector _vec_ by this quaternion; returns the
|
310
|
+
# rotated vector (a new FXVec3f instance).
|
311
|
+
#
|
312
|
+
# ==== Parameters:
|
313
|
+
#
|
314
|
+
# +vec+:: the vector to be rotated [FXVec3f]
|
315
|
+
#
|
316
|
+
def *(vec); end
|
317
|
+
|
318
|
+
#
|
319
|
+
# Construct a quaternion from arc a->b on unit sphere.
|
320
|
+
#
|
321
|
+
# ==== Parameters:
|
322
|
+
#
|
323
|
+
# +a+:: [FXVec3f]
|
324
|
+
# +b+:: [FXVec3f]
|
325
|
+
#
|
326
|
+
def FXQuatf.arc(a, b); end
|
327
|
+
|
328
|
+
#
|
329
|
+
# Spherical lerp.
|
330
|
+
#
|
331
|
+
# ==== Parameters:
|
332
|
+
#
|
333
|
+
# +u+:: [FXQuatf]
|
334
|
+
# +v+:: [FXQuatf]
|
335
|
+
# +f+:: [Float]
|
336
|
+
#
|
337
|
+
def FXQuatf.lerp(u, v, f); end
|
338
|
+
|
339
|
+
# Convert to a 3x3 matrix; returns an FXMat3f instance.
|
340
|
+
def toMatrix; end
|
341
|
+
end
|
342
|
+
end
|