Class: Eigen::Affine3
- Inherits:
-
Object
- Object
- Eigen::Affine3
- Defined in:
- ext/eigen/eigen.cpp,
lib/eigen/affine3.rb
Overview
An affine transformation
Class Method Summary collapse
Instance Method Summary collapse
- #*(obj) ⇒ Object
- #==(q) ⇒ Object
-
#approx?(v, threshold = dummy_precision) ⇒ Boolean
Verifies that two transformations are within threshold of each other, elementwise.
-
#concatenate(is) ⇒ Affine3
Concatenate self and another transformation.
- #dup ⇒ Object
-
#inverse ⇒ Affine3
The inverse transformation.
-
#matrix ⇒ MatrixX
The transformation matrix equivalent to self.
-
#prerotate(q) ⇒ void
Add a new rotation before the translation.
-
#pretranslate(v) ⇒ void
Add a new translation before the rotation.
-
#rotate(q) ⇒ void
Add a new rotation after the translation.
-
#rotation ⇒ Quaternion
The rotation part of this transformation.
- #to_s ⇒ Object
-
#translate(v) ⇒ void
Add a new translation after the rotation.
-
#translation ⇒ Vector3
The translation part of this transformation.
Class Method Details
.from_position_orientation(v, q) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/eigen/affine3.rb', line 7 def self.from_position_orientation( v, q ) i = Affine3.Identity i.prerotate( q ) i.pretranslate( v ) i end |
.Identity ⇒ Object
3 4 5 |
# File 'lib/eigen/affine3.rb', line 3 def self.Identity Affine3.new end |
Instance Method Details
#*(obj) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/eigen/affine3.rb', line 23 def *(obj) if obj.kind_of?(Affine3) concatenate(obj) else transform(obj) end end |
#==(q) ⇒ Object
18 19 20 21 |
# File 'lib/eigen/affine3.rb', line 18 def ==(q) q.kind_of?(self.class) && __equal__(q) end |
#approx?(v, threshold = dummy_precision) ⇒ Boolean
Verifies that two transformations are within threshold of each other, elementwise
#concatenate(is) ⇒ Affine3
Concatenate self and another transformation
#dup ⇒ Object
14 15 16 |
# File 'lib/eigen/affine3.rb', line 14 def dup raise NotImplementedError end |
#inverse ⇒ Affine3
The inverse transformation
#matrix ⇒ MatrixX
The transformation matrix equivalent to self
#prerotate(q) ⇒ void
This method returns an undefined value.
Add a new rotation before the translation
#pretranslate(v) ⇒ void
This method returns an undefined value.
Add a new translation before the rotation
#rotate(q) ⇒ void
This method returns an undefined value.
Add a new rotation after the translation
#rotation ⇒ Quaternion
The rotation part of this transformation
#to_s ⇒ Object
31 32 33 |
# File 'lib/eigen/affine3.rb', line 31 def to_s matrix.to_s end |
#translate(v) ⇒ void
This method returns an undefined value.
Add a new translation after the rotation
#translation ⇒ Vector3
The translation part of this transformation