Sha256: 51ba2322db73735ae4165368e84b7c7d4a1626aa3a5a3cc7cbc1b9eed9f109eb

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

describe Joybox::Physics::RayCastOutput do

  it "should convert between coordinate systems" do
    ray_cast_output = RayCastOutput.new

    ray_cast_output.normal = [32, 32]
    ray_cast_output.metric_normal.should == CGPointMake(1, 1)

    ray_cast_output.metric_normal = [2, 2]
    ray_cast_output.normal.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_output_spec.rb
joybox-1.1.0 spec/motion/joybox/physics/ray_cast_output_spec.rb