Class: Lumino::Quaternion
- Inherits:
-
Object
- Object
- Lumino::Quaternion
- Defined in:
- LuminoRubyDoc.rb
Overview
クォータニオンのクラスです。
Instance Method Summary (collapse)
-
- (Lumino::Quaternion) conjugate(qua)
クォータニオンの共役を計算します。.
-
- (Lumino::Quaternion) identity
単位クォータニオンを作成します。.
-
- (Quaternion) initialize(x, y, z, w)
constructor
初期化.
-
- (Lumino::Quaternion) multiply(qua1, qua2)
2 つのクォータニオンの積を計算します。.
-
- (Lumino::Quaternion) normalize(qua)
クォータニオンを正規化します。.
-
- (Lumino::Quaternion) rotation_axis(axis, r)
任意の軸を回転軸にして回転するクォータニオンを作成します。.
-
- (Lumino::Quaternion) rotation_matrix(mat)
回転行列からクォータニオンを作成します。.
-
- (Lumino::Quaternion) rotation_yaw_pitch_roll(yaw, pitch, roll)
ヨー、ピッチ、およびロールを指定してクォータニオンを作成します。.
-
- (Object) set(x, y, z, w)
クォータニオンに値を設定します。.
-
- (Lumino::Quaternion) slerp(qua1, qua2, t)
2 つのクォータニオンを球面線形補間します。.
- - (Float) w
- - (Object) w=(v)
- - (Float) x
- - (Object) x=(v)
- - (Float) y
- - (Object) y=(v)
- - (Float) z
- - (Object) z=(v)
Constructor Details
- (Quaternion) initialize(x, y, z, w)
初期化
1249 1250 |
# File 'LuminoRubyDoc.rb', line 1249 def initialize end |
Instance Method Details
- (Lumino::Quaternion) conjugate(qua)
クォータニオンの共役を計算します。
1346 1347 |
# File 'LuminoRubyDoc.rb', line 1346 def conjugate end |
- (Lumino::Quaternion) identity
単位クォータニオンを作成します。
1311 1312 |
# File 'LuminoRubyDoc.rb', line 1311 def identity end |
- (Lumino::Quaternion) multiply(qua1, qua2)
2 つのクォータニオンの積を計算します。
1353 1354 |
# File 'LuminoRubyDoc.rb', line 1353 def multiply end |
- (Lumino::Quaternion) normalize(qua)
クォータニオンを正規化します。
1340 1341 |
# File 'LuminoRubyDoc.rb', line 1340 def normalize end |
- (Lumino::Quaternion) rotation_axis(axis, r)
任意の軸を回転軸にして回転するクォータニオンを作成します。
1320 1321 |
# File 'LuminoRubyDoc.rb', line 1320 def rotation_axis end |
- (Lumino::Quaternion) rotation_matrix(mat)
回転行列からクォータニオンを作成します。
1326 1327 |
# File 'LuminoRubyDoc.rb', line 1326 def rotation_matrix end |
- (Lumino::Quaternion) rotation_yaw_pitch_roll(yaw, pitch, roll)
ヨー、ピッチ、およびロールを指定してクォータニオンを作成します。
1334 1335 |
# File 'LuminoRubyDoc.rb', line 1334 def rotation_yaw_pitch_roll end |
- (Object) set(x, y, z, w)
クォータニオンに値を設定します。
1306 1307 |
# File 'LuminoRubyDoc.rb', line 1306 def set end |
- (Lumino::Quaternion) slerp(qua1, qua2, t)
2 つのクォータニオンを球面線形補間します。
1361 1362 |
# File 'LuminoRubyDoc.rb', line 1361 def slerp end |
- (Float) w
1297 1298 |
# File 'LuminoRubyDoc.rb', line 1297 def w end |
- (Object) w=(v)
1291 1292 |
# File 'LuminoRubyDoc.rb', line 1291 def w=(v) end |
- (Float) x
1261 1262 |
# File 'LuminoRubyDoc.rb', line 1261 def x end |
- (Object) x=(v)
1255 1256 |
# File 'LuminoRubyDoc.rb', line 1255 def x=(v) end |
- (Float) y
1273 1274 |
# File 'LuminoRubyDoc.rb', line 1273 def y end |
- (Object) y=(v)
1267 1268 |
# File 'LuminoRubyDoc.rb', line 1267 def y=(v) end |
- (Float) z
1285 1286 |
# File 'LuminoRubyDoc.rb', line 1285 def z end |
- (Object) z=(v)
1279 1280 |
# File 'LuminoRubyDoc.rb', line 1279 def z=(v) end |