1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 16:26:47 +02:00

add degrees

This commit is contained in:
Justin Lin
2021-02-12 18:53:38 +08:00
parent 226674d30f
commit fcb4afa93f
3 changed files with 26 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp
- [util/bsearch](https://openhome.cc/eGossip/OpenSCAD/lib3x-bsearch.html)
- [util/choose](https://openhome.cc/eGossip/OpenSCAD/lib3x-choose.html)
- [util/dedup](https://openhome.cc/eGossip/OpenSCAD/lib3x-dedup.html)
- util/degrees
- [util/degrees](https://openhome.cc/eGossip/OpenSCAD/lib3x-degrees.html)
- [util/every](https://openhome.cc/eGossip/OpenSCAD/lib3x-every.html)
- [util/fibseq](https://openhome.cc/eGossip/OpenSCAD/lib3x-fibseq.html)
- [util/flat](https://openhome.cc/eGossip/OpenSCAD/lib3x-flat.html)

15
docs/lib3x-degrees.md Normal file
View File

@@ -0,0 +1,15 @@
# degrees
Converts a radian measurement to the corresponding value in degrees.
**Since:**: 3.0
## Parameters
- `radians` : The radians value.
## Examples
use <util/degrees.scad>;
assert(degrees(PI) == 180);

View File

@@ -1 +1,11 @@
/**
* degrees.scad
*
* @copyright Justin Lin, 2020
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-degrees.html
*
**/
function degrees(radians) = 180 / PI * radians;