Coordinates is a C++ Library. It has been developed to perform conversions between cartesian and polar coordinate systems. To know more about concepts refer Glossary.
Coordinates has a simple syntax. Just two function calls are enough to get the conversions done.
-
Call fromCartesian() - to convert cartesian coordinates to polar coordinates.
-
Call fromPolar() - to convert polar coordinates to cartesian coordinates.
Coordinates
provides a class
to seamlessly convert cartesian coordinates to polar coordinates or vice versa.
It uses floating point math to do so with quadrant checking to always give better precision.
Refer Function list to know about the funtions offered by Coordinates
.
How to install Coordinates library?
You can install Coordinates in either of the two ways depending on how you are using the Arduino IDE.
-
Option 1: If you are working offline using Arduino IDE please follow the steps as given in :
Install library in Arduino IDE -
Option 2: If you are working online using Arduino Web Editor follow these steps:
-
Sign in to your account.
-
Open or create a new Sketch in which you wish to use this library.
-
Click on Library Manager in Libraries tab.
-
Choose your board and the topic (optional)
-
Search for 'Coordinates', star it and now click Done.
-
Go to Favorites section inside the Libraries tab and search for 'Coordinates'.
-
Hover the mouse over it and click Include or just type "
#include <Coordinates.h>
"in your 'Sketch'.
-
- Conversions - Compares coordiante values resulting after conversion using the library and actual coordinate values obtained using sensors.
We are glad you want to contribute! Any open source project grows because of the contributions by the community. You can contribute to the following:
- Issue Tracking
- Source Code
- Examples: Add a project that uses
Coordinates
library. - If you have anything else in mind feel free to open a Pull Request.
Note : Please go through CONTRIBUTING.md before contributing.
If you are having issues, or require any help please let us know here.
The project is licenced under the GNU Lesser General Public License v3.0.