Merge pull request #666 from ShishKabab/patch-1
Fix wrong degree to radian conversion in trig function. Might break some...
This commit is contained in:
commit
be7b419479
@ -19,7 +19,7 @@ module Compass::SassExtensions::Functions::Trig
|
||||
private
|
||||
def trig(operation, number)
|
||||
if number.numerator_units == ["deg"] && number.denominator_units == []
|
||||
Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 360))
|
||||
Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 180))
|
||||
else
|
||||
Sass::Script::Number.new(Math.send(operation, number.value), number.numerator_units, number.denominator_units)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user