sassy-math 0.1.8 → 0.1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/sassy-math.gemspec +1 -1
- data/stylesheets/_math.scss +24 -21
- metadata +2 -1
data/sassy-math.gemspec
CHANGED
data/stylesheets/_math.scss
CHANGED
@@ -101,27 +101,30 @@ $iter: 50;
|
|
101
101
|
//////////////////////////////
|
102
102
|
// Basic Trig Functions
|
103
103
|
//////////////////////////////
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
@
|
109
|
-
|
110
|
-
|
111
|
-
@
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
@
|
116
|
-
|
117
|
-
|
118
|
-
//
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
@
|
124
|
-
|
104
|
+
// Bundled in Compass: http://compass-style.org/reference/compass/helpers/trig/
|
105
|
+
// References for implementing using MacLaurin series below:
|
106
|
+
|
107
|
+
//@function sin($number, $unit: 'deg') {
|
108
|
+
// @if $unit == 'deg' {
|
109
|
+
// $number: deg-to-rad($number);
|
110
|
+
// }
|
111
|
+
// @return maclaurin($number, 3, $number);
|
112
|
+
//}
|
113
|
+
//
|
114
|
+
//@function cos($number, $unit: 'deg') {
|
115
|
+
// @if $unit == 'deg' {
|
116
|
+
// $number: deg-to-rad($number);
|
117
|
+
// }
|
118
|
+
// @return maclaurin(1, 2, $number);
|
119
|
+
//}
|
120
|
+
//
|
121
|
+
//// Trig Identity: Tangent = Sine divided by Cosine.
|
122
|
+
//@function tan($number, $unit: 'deg') {
|
123
|
+
// @if $unit == 'deg' {
|
124
|
+
// $number: deg-to-rad($number);
|
125
|
+
// }
|
126
|
+
// @return sin($number) / cos($number);
|
127
|
+
//}
|
125
128
|
|
126
129
|
//////////////////////////////
|
127
130
|
// Reciprocal Trig Functions
|