Sha256: 6ee2ed7366dbe8c9eabd4325dc9ed6e4ed782efa23e39b4f6248ceed6f3fee38
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
class CGPoint def to_opengl_coordinates Joybox.director.convertToGL(self) end def from_opengl_coordinates Joybox.director.convertToUI(self) end def to_pixel_coordinates CGPointMake(self.x.to_pixels, self.y.to_pixels) end def from_pixel_coordinates CGPointMake(self.x.from_pixels, self.y.from_pixels) end def == (point) point.is_a?(CGPoint) && CGPointEqualToPoint(self, point) end def + (point) CGPointMake(self.x + point.x, self.y + point.y) end def - (point) CGPointMake(self.x - point.x, self.y - point.y) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.0.0 | motion/joybox-ios/common/cg_point.rb |
joybox-0.0.6 | motion/joybox-ios/common/cg_point.rb |