sdumetz / coordinates

Coordinates conversion for Arduino using floating point numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino Coordinates Library

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.

Features

Intuitive Syntax

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.

Better Precision

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.

Functions

Refer Function list to know about the funtions offered by Coordinates.

Installation

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'.

Example Usage

  • Conversions - Compares coordiante values resulting after conversion using the library and actual coordinate values obtained using sensors.

Glossary

Contribute

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:

Note : Please go through CONTRIBUTING.md before contributing.

Support

If you are having issues, or require any help please let us know here.

Licence

The project is licenced under the GNU Lesser General Public License v3.0.

About

Coordinates conversion for Arduino using floating point numbers

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 100.0%