Remove obsolete class FXHVec.
Lars Kanis
8 years ago
624 | 624 | end |
625 | 625 | end |
626 | 626 | |
627 | class FXHVec | |
628 | def normalize! | |
629 | normalized = self.normalize | |
630 | 0.upto(3) { |idx| self[idx] = normalized[idx] } | |
631 | self | |
632 | end | |
633 | end | |
634 | ||
635 | 627 | class FXTable |
636 | 628 | # |
637 | 629 | # Append _numColumns_ columns to the right of the table.. |
47 | 47 | assert_in_delta(0.7, @mat.emission[2], DELTA) |
48 | 48 | assert_in_delta(0.8, @mat.emission[3], DELTA) |
49 | 49 | |
50 | @mat.emission = FXHVec.new(0.5, 0.6, 0.7, 0.8) | |
50 | @mat.emission = FXVec4f.new(0.5, 0.6, 0.7, 0.8) | |
51 | 51 | assert_in_delta(0.5, @mat.emission[0], DELTA) |
52 | 52 | assert_in_delta(0.6, @mat.emission[1], DELTA) |
53 | 53 | assert_in_delta(0.7, @mat.emission[2], DELTA) |