Chapter 5. Problem with transformed sphere and ray intersect Jan 26, 2020 16:56:26 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by danylo on Jan 26, 2020 16:56:26 GMT Hello there!Currently I'm on Ch. 5 and trying to implement this test:Scenario: Intersecting a scaled sphere with a rayGiven r ← ray(point(0, 0, -5), vector(0, 0, 1))And s ← sphere()When set_transform(s, scaling(2, 2, 2))And xs ← intersect(s, r)Then xs.count = 2And xs.t = 3And xs.t = 7The problem is - both of answers I get are exactly half of expected. So xs.t = 1.5 and xs.t = 3.5Every other test I've implemented before works correctly. Is there a book mistake, or I should check the code?