Sha256: 5b20315a8dae276398e79586649bd62f4238c1059c027682727e7db5d558b2d1
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
# TODO: Revisar el nombre de estos metodos class CGSize def half_width width / 2 end def double_width width * 2 end def half_height height / 2 end def double_height height * 2 end def to_uikit_coordinates CGSizeMake(self.width.from_pixels, self.height.from_pixels) end def to_pixel_coordinates CGSizeMake(self.width.to_pixels, self.height.to_pixels) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
joybox-0.0.5 | lib/joybox/cocos2d/common/gc_size.rb |
joybox-0.0.4 | lib/joybox/cocos2d/common/gc_size.rb |
joybox-0.0.3 | lib/joybox/cocos2d/common/gc_size.rb |