class Celestine::Drawable::Transform
- Celestine::Drawable::Transform
- Reference
- Object
Overview
A transform class used to interact with the transform
attribute
Defined in:
drawables/drawable.crInstance Method Summary
- #empty?
- #matrix(a : Float64, b : Float64, c : Float64, d : Float64, e : Float64, f : Float64)
- #objects_io : IO::Memory
- #rotate(degrees, origin_x, origin_y)
- #scale(x, y)
- #skew_x(x)
- #skew_y(y)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #translate(x, y)
Instance Method Detail
def matrix(a : Float64, b : Float64, c : Float64, d : Float64, e : Float64, f : Float64)
#
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.