Sha256: b475832b2712d2680b157fcbead3f52f1e0c2f366e95964f01a23ea2ff19556d
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
describe Joybox::Physics::RayCastInput do it "should convert between coordinate systems" do ray_cast_input = RayCastInput.new ray_cast_input.first_point = [32, 32] ray_cast_input.second_point = [32, 32] ray_cast_input.metric_first_point.should == CGPointMake(1, 1) ray_cast_input.metric_second_point.should == CGPointMake(1, 1) ray_cast_input.metric_first_point = [2, 2] ray_cast_input.metric_second_point = [2, 2] ray_cast_input.first_point.should == CGPointMake(64, 64) ray_cast_input.second_point.should == CGPointMake(64, 64) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/motion/joybox/physics/ray_cast_input_spec.rb |
joybox-1.1.0 | spec/motion/joybox/physics/ray_cast_input_spec.rb |