Sha256: c682f9e51ea038b2b1fffc83fb404f64e463b4f7bb4c1b88e6058f2906f0324e

Contents?: true

Size: 656 Bytes

Versions: 2

Compression:

Stored size: 656 Bytes

Contents

Joybox::Physics::AABB = B2DAABB

class B2DAABB
  
  alias_method :metric_lower_bound, :lowerBound
  alias_method :metric_lower_bound=, :setLowerBound
  alias_method :metric_upper_bound, :upperBound
  alias_method :metric_upper_bound=, :setUpperBound

  def lower_bound
    lowerBound.to_pixel_coordinates
  end

  def lower_bound=(bound)
    bound = bound.to_point unless bound.is_a? (CGPoint)
    self.lowerBound = bound.from_pixel_coordinates
  end

  def upper_bound
    upperBound.to_pixel_coordinates
  end

  def upper_bound=(bound)
    bound = bound.to_point unless bound.is_a? (CGPoint)
    self.upperBound = bound.from_pixel_coordinates
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 motion/joybox/physics/aabb.rb
joybox-1.1.0 motion/joybox/physics/aabb.rb