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.
| 133 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 133 def initialize; end | 
Instance Method Details
#==(t) ⇒ Boolean
Check that this matrix is identical with t.
| 127 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 127 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 |
| 156 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 156 def concat(t) end | 
#get ⇒ Array(Wx::Matrix2D,Wx::Point2DDouble)
Get the component values of the matrix.
| 137 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 137 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 |
| 168 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 168 def invert; end | 
#is_identity ⇒ Boolean Also known as: identity?
Check if this is the identity matrix.
| 172 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 172 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 |
| 208 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 208 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 |
| 197 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 197 def scale(xScale, yScale) end | 
#set(mat2D, tr) ⇒ void
This method returns an undefined value.
Set all elements of this matrix.
| 143 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 143 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 |
| 185 | # File 'lib/wx/doc/gen/affine_matrix2d.rb', line 185 def translate(dx, dy) end |