Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanickrochon/universal-circle
Everything to know about circles.
https://github.com/yanickrochon/universal-circle
Last synced: about 1 month ago
JSON representation
Everything to know about circles.
- Host: GitHub
- URL: https://github.com/yanickrochon/universal-circle
- Owner: yanickrochon
- License: mit
- Created: 2018-04-05T07:06:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:15:27.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T01:46:49.731Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 577 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Universal Circle
Everything to know about circles.
## API
### Circle
* **Circle(radius)**
* **circle.radius** *{Number}*
* **circle.circumference()** *{Number}*
* **circle.area()** *{Number}*
* **circle.toSegmentFromHeight(height)** *{CircleSegment}*
* **circle.toSegmentFromChord(chordLength)** *{CircleSegment}*### CircleAngle
* **Circle.Angle(angle)**
* **Circle.Angle.radians(degrees)** *{Number}*
* **angle.angle** *{Number}*
* **angle.degrees()** *{Number}*
* **angle.toSegmentFromHeight(height)** *{CircleSegment}*
* **angle.toSegmentFromChord(chordLength)** *{CircleSegment}*### CircleSegment
* **Circle.Segment(chordLength, height)**
* **Circle.Segment.height(radius, angle)** *{Number}*
* **Circle.Segment.chordLength(radius, angle)** *{Number}*
* **segment.chordLength** *{Number}*
* **segment.height** *{Number}*
* **segment.arcLength()** *{NUmber}*
* **segment.area()** *{Number}*
* **segment.circleRadius()** *{Number}*
* **segment.toAngle()** *{CircleAngle}*
* **segment.toCircle()** *{Circle}*## License
MIT