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