Codebase list ruby-fxruby / 55cf9bd
Remove obsolete class FXHVec. Lars Kanis 8 years ago
2 changed file(s) with 1 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
624624 end
625625 end
626626
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
635627 class FXTable
636628 #
637629 # Append _numColumns_ columns to the right of the table..
4747 assert_in_delta(0.7, @mat.emission[2], DELTA)
4848 assert_in_delta(0.8, @mat.emission[3], DELTA)
4949
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)
5151 assert_in_delta(0.5, @mat.emission[0], DELTA)
5252 assert_in_delta(0.6, @mat.emission[1], DELTA)
5353 assert_in_delta(0.7, @mat.emission[2], DELTA)