Class: Wx::AffineMatrix2D
- Inherits:
-
AffineMatrix2DBase
- Object
- AffineMatrix2DBase
- Wx::AffineMatrix2D
- Defined in:
- lib/wx/doc/gen/affine_matrix2d.rb
Overview
This class is untracked and should not be derived from nor instances extended!
A 3x2 matrix representing an affine 2D transformation.
Category: Miscellaneous
Instance Method Summary collapse
-
#==(t) ⇒ Boolean
Check that this matrix is identical with t.
-
#concat(t) ⇒ void
Concatenate this matrix with another one.
-
#get ⇒ Array(Wx::Matrix2D,Wx::Point2DDouble)
Get the component values of the matrix.
-
#initialize ⇒ Wx::AffineMatrix2D
constructor
Default constructor.
-
#invert ⇒ Boolean
Invert this matrix.
-
#is_identity ⇒ Boolean
(also: #identity?)
Check if this is the identity matrix.
-
#rotate(cRadians) ⇒ void
Add clockwise rotation to this matrix.
-
#scale(xScale, yScale) ⇒ void
Add scaling to this matrix.
-
#set(mat2D, tr) ⇒ void
Set all elements of this matrix.
-
#translate(dx, dy) ⇒ void
Add the translation to this matrix.
Methods inherited from AffineMatrix2DBase
#is_equal, #mirror, #transform_distance, #transform_point
Constructor Details
#initialize ⇒ Wx::AffineMatrix2D
Default constructor.
The matrix elements are initialize to the identity matrix.
139 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 139 def initialize; end |
Instance Method Details
#==(t) ⇒ Boolean
Check that this matrix is identical with t.
133 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 133 def ==(t) end |
#concat(t) ⇒ void
This method returns an undefined value.
Concatenate this matrix with another one.
The parameter matrix is the multiplicand.
// | t.m_11 t.m_12 0 | | m_11 m_12 0 |
// matrix' = | t.m_21 t.m_22 0 | x | m_21 m_22 0 |
// | t.m_tx t.m_ty 1 | | m_tx m_ty 1 |
162 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 162 def concat(t) end |
#get ⇒ Array(Wx::Matrix2D,Wx::Point2DDouble)
Get the component values of the matrix.
143 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 143 def get; end |
#invert ⇒ Boolean
Invert this matrix.
If the matrix is not invertible, i.e. if its determinant is 0, returns false and doesn’t modify it.
// | m_11 m_12 0 |
// Invert | m_21 m_22 0 |
// | m_tx m_ty 1 |
174 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 174 def invert; end |
#is_identity ⇒ Boolean Also known as: identity?
Check if this is the identity matrix.
178 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 178 def is_identity; end |
#rotate(cRadians) ⇒ void
This method returns an undefined value.
Add clockwise rotation to this matrix.
// | cos sin 0 | | m_11 m_12 0 |
// matrix' = | -sin cos 0 | x | m_21 m_22 0 |
// | 0 0 1 | | m_tx m_ty 1 |
214 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 214 def rotate(cRadians) end |
#scale(xScale, yScale) ⇒ void
This method returns an undefined value.
Add scaling to this matrix.
// | xScale 0 0 | | m_11 m_12 0 |
// matrix' = | 0 yScale 0 | x | m_21 m_22 0 |
// | 0 0 1 | | m_tx m_ty 1 |
203 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 203 def scale(xScale, yScale) end |
#set(mat2D, tr) ⇒ void
This method returns an undefined value.
Set all elements of this matrix.
149 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 149 def set(mat2D, tr) end |
#translate(dx, dy) ⇒ void
This method returns an undefined value.
Add the translation to this matrix.
// | 1 0 0 | | m_11 m_12 0 |
// matrix' = | 0 1 0 | x | m_21 m_22 0 |
// | dx dy 1 | | m_tx m_ty 1 |
191 |
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 191 def translate(dx, dy) end |