Sha256: 1b46418a237c638ada114f051f6d3600a45c92b78a5e148cd303d31fbed45bec
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
Joybox::Physics::MassData = B2DMassData class B2DMassData alias_method :rotational_inertia, :I alias_method :rotational_inertia=, :setI alias_method :metric_center, :centre alias_method :metric_center=, :setCentre def center metric_center.to_pixel_coordinates end def center=(center) center = center.to_point unless center.is_a? (CGPoint) self.metric_center = center.from_pixel_coordinates end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox/physics/mass_data.rb |
joybox-1.1.0 | motion/joybox/physics/mass_data.rb |