Skip to content

class Celestine::Drawable::Transform
inherits Reference #

A transform class used to interact with the transform attribute

Methods#

#empty? #

View source

#matrix(a : Float64, b : Float64, c : Float64, d : Float64, e : Float64, f : Float64) #

View source

#objects_io : IO::Memory #

View source

#rotate(degrees, origin_x, origin_y) #

View source

#scale(x, y) #

View source

#skew_x(x) #

View source

#skew_y(y) #

View source

#to_s #

Returns a string representation of this object.

Descendants must usually not override this method. Instead, they must override to_s(io), which must append to the given IO object.

View source

#translate(x, y) #

View source