File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ def initialize(normal, *vertices)
1818
1919 # @return [Float] The signed volume
2020 def signed_volume
21- # math voodoo acording to:
22- # http://stackoverflow.com/questions/1406029/how-to-calculate-the-volume-of-a-3d-mesh-object-the-surface-of-which-is-made-up
21+ # math voodoo acording to:
22+ # http://stackoverflow.com/questions/1406029/how-to-calculate-the-volume-of-a-3d-mesh-object-the-surface-of-which-is-made-up
2323 v321 = @points [ 2 ] [ 0 ] * @points [ 1 ] [ 1 ] * @points [ 0 ] [ 2 ]
2424 v231 = @points [ 1 ] [ 0 ] * @points [ 2 ] [ 1 ] * @points [ 0 ] [ 2 ]
2525 v312 = @points [ 2 ] [ 0 ] * @points [ 0 ] [ 1 ] * @points [ 1 ] [ 2 ]
Original file line number Diff line number Diff line change 7575
7676 it 'must have a volume' do
7777 subject . volume . must_equal 12000.0
78- subject . scale ( 2 ) . volume . must_equal 96000.0
78+ subject . scale ( 2 ) . volume . must_equal 96000.0
7979 end
8080 end
8181
You can’t perform that action at this time.
0 commit comments