Class: Wx::AffineMatrix2DBase

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/affine_matrix2d.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

A 2x3 matrix representing an affine 2D transformation.

This is an abstract base class implemented by AffineMatrix2D only so far, but in the future we also plan to derive GraphicsMatrix from it.

Category: Miscellaneous

Requires:

  • USE_GEOMETRY

Direct Known Subclasses

AffineMatrix2D

Instance Method Summary collapse

Constructor Details

#initializeWx::AffineMatrix2DBase

Default constructor.

The matrix elements are initialize to the identity matrix.



35
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 35

def initialize; end

Instance Method Details

#==(t) ⇒ Boolean

Check that this matrix is identical with t.

Parameters:

Returns:

  • (Boolean)


29
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 29

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 |

Parameters:



58
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 58

def concat(t) end

#getArray(Wx::Matrix2D,Wx::Point2DDouble)

Get the component values of the matrix.

Returns:



45
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 45

def get; end

#invertBoolean

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 |

Returns:

  • (Boolean)


70
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 70

def invert; end

#is_equal(t) ⇒ Boolean Also known as: equal?

Check that this matrix is identical with t.

Parameters:

Returns:

  • (Boolean)


23
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 23

def is_equal(t) end

#is_identityBoolean Also known as: identity?

Check if this is the identity matrix.

Returns:

  • (Boolean)


74
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 74

def is_identity; end

#mirror(direction = Wx::Orientation::HORIZONTAL) ⇒ void

This method returns an undefined value.

Add mirroring to this matrix.

Parameters:



97
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 97

def mirror(direction=Wx::Orientation::HORIZONTAL) end

#rotate(cRadians) ⇒ void

This method returns an undefined value.

Add clockwise rotation to this matrix.

Parameters:

  • cRadians (Float)

    Rotation angle in radians, clockwise.



92
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 92

def rotate(cRadians) end

#scale(xScale, yScale) ⇒ void

This method returns an undefined value.

Add scaling to this matrix.

Parameters:

  • xScale (Float)

    Scaling in x direction.

  • yScale (Float)

    Scaling in y direction.



87
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 87

def scale(xScale, yScale) end

#set(mat2D, tr) ⇒ void

This method returns an undefined value.

Set all elements of this matrix.

Parameters:

  • mat2D (Wx::Matrix2D)

    The rotational components of the matrix (upper 2 x 2).

  • tr (Wx::Point2DDouble)

    The translational components of the matrix.



41
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 41

def set(mat2D, tr) end

#transform_distance(p) ⇒ Wx::Point2DDouble #transform_distanceArray(Integer,Integer)

Overloads:

  • #transform_distance(p) ⇒ Wx::Point2DDouble

    Applies the linear part of this matrix, i.e. without translation.

    The source with the transformations applied.

    Parameters:

    Returns:

  • #transform_distanceArray(Integer,Integer)

    Returns:

    • (Array(Integer,Integer))


117
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 117

def transform_distance(*args) end

#transform_point(p) ⇒ Wx::Point2DDouble #transform_pointArray(Integer,Integer)

Overloads:

  • #transform_point(p) ⇒ Wx::Point2DDouble

    Applies this matrix to the point.

    The point with the transformations applied.

    Parameters:

    Returns:

  • #transform_pointArray(Integer,Integer)

    Returns:

    • (Array(Integer,Integer))


107
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 107

def transform_point(*args) end

#translate(dx, dy) ⇒ void

This method returns an undefined value.

Add the translation to this matrix.

Parameters:

  • dx (Float)

    The translation in x direction.

  • dy (Float)

    The translation in y direction.



81
# File 'lib/wx/doc/gen/affine_matrix2d.rb', line 81

def translate(dx, dy) end