Class: Geom::Transformation2d
- Inherits:
- 
      Object
      
        - Object
- Geom::Transformation2d
 
Overview
Class Method Summary # collapse
- 
  
    
      .rotation(point, angle)  ⇒ Geom::Transformation2d 
    
    
  
  
  
  
  
  
  
  
  
    The Transformation2d.rotation method is used to create a transformation that does rotation about a point. 
- 
  
    
      .scaling(*args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    The Transformation2d.scaling method is used to create a transformation that does scaling. 
- 
  
    
      .translation(vector)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    The Transformation2d.translation method is used to create a transformation that does translation. 
Instance Method Summary # collapse
- 
  
    
      #*(arg)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    The #* method is used to do matrix multiplication using the transform. 
- 
  
    
      #==(other)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    The #== method checks to see if the two Transformation2ds are equal. 
- 
  
    
      #clone  ⇒ Geom::Transformation2d 
    
    
  
  
  
  
  
  
  
  
  
    The #clone method creates a copy of the Transformation2d. 
- 
  
    
      #identity?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    The #identity? method determines if the Transformation2d is the IDENTITY_2D transform. 
- 
  
    
      #initialize(*args)  ⇒ Object 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    The #initialize method creates a new Transformation2d. 
- 
  
    
      #inverse  ⇒ Geom::Transformation2d 
    
    
  
  
  
  
  
  
  
  
  
    The #inverse method is used to retrieve the inverse of a transformation. 
- 
  
    
      #invert!  ⇒ Geom::Transformation2d 
    
    
  
  
  
  
  
  
  
  
  
    The #invert! method sets the transformation to its inverse. 
- 
  
    
      #set!(arg)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    The #set! method sets the Transformation2d to match another one. 
- 
  
    
      #to_a  ⇒ Array<Float> 
    
    
  
  
  
  
  
  
  
  
  
    The #to_a method returns a 6 element array which contains the values that define the Transformation2d. 
Constructor Details
↑ #initialize ⇒ Geom::Transformation2d #initialize(transformation) ⇒ Geom::Transformation2d #initialize(array) ⇒ Geom::Transformation2d
The #initialize method creates a new Geom::Transformation2d. You can use this method or one of the more specific methods for creating specific kinds of Geom::Transformation2d.
Class Method Details
↑ .rotation(point, angle) ⇒ Geom::Transformation2d
The rotation method is used to create a transformation that does rotation about a point.
↑ .scaling(scale) ⇒ Geom::Transformation2d .scaling(xscale, yscale) ⇒ Geom::Transformation2d .scaling(point, scale) ⇒ Geom::Transformation2d .scaling(point, xscale, yscale) ⇒ Geom::Transformation2d
The scaling method is used to create a transformation that does scaling.
↑ .translation(vector) ⇒ Geom::Transformation2d .translation(point) ⇒ Geom::Transformation2d
The translation method is used to create a transformation that does translation.
Instance Method Details
↑ #*(point) ⇒ Geom::Point2d #*(vector) ⇒ Geom::Vector2d #*(transformation) ⇒ Geom::Transformation2d #*(point) ⇒ Array(Float, Float)
The #* method is used to do matrix multiplication using the transform.
↑ #==(other) ⇒ Boolean
The #== method checks to see if the two Geom::Transformation2ds are equal. This checks whether the values of the transformations are the same.
↑ #clone ⇒ Geom::Transformation2d
The #clone method creates a copy of the Geom::Transformation2d.
↑ #identity? ⇒ Boolean
The #identity? method determines if the Geom::Transformation2d is the IDENTITY_2D transform.
↑ #inverse ⇒ Geom::Transformation2d
The #inverse method is used to retrieve the inverse of a transformation.
↑ #invert! ⇒ Geom::Transformation2d
The #invert! method sets the transformation to its inverse.
↑ #set!(transformation) ⇒ Geom::Transformation2d #set!(matrix) ⇒ Geom::Transformation2d
The #set! method sets the Geom::Transformation2d to match another one. The argument is anything that can be converted into a Geom::Transformation2d.