Sha256: 8f8863aec7671bdf7f4186595e253b3ba26d603ad2fdd9609c1294f5c4e2dfcb

Contents?: true

Size: 340 Bytes

Versions: 106

Compression:

Stored size: 340 Bytes

Contents

// Returns the arccosine of a number.
// @param {Number} $x A number between -1 and 1.
// @example
//     acos(0.1) // 1.47063
//     acos(-1)  // 3.14159
@function acos ($x) {
    @if $x > 1 or $x < -1 {
        @warn "Argument for `acos()` must be a number between -1 and 1";
        @return null;
    }
    @return $PI / 2 - asin($x);
}

Version data entries

106 entries across 106 versions & 3 rubygems

Version Path
decidim-admin-0.1.0 app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss
decidim-0.1.0 decidim-admin/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss
MathSass-0.9.5 dist/functions/_acos.scss
MathSass-0.9.4 dist/functions/_acos.scss
MathSass-0.9.3 dist/functions/_acos.scss
MathSass-0.9.2 dist/functions/_acos.scss