|
ART v1.0-alpha
A Robot Template that raises the floor for VRC teams
|
Source containing several Unit classes. More...
#include "ART/Units.h"Go to the source code of this file.
Namespaces | |
| namespace | art |
Functions | |
| Length | art::Pixels (double pixels) |
| Constructs a Length from Pixels. | |
| Length | art::Inches (double inches) |
| Constructs a Length from Inches. | |
| Length | art::Feet (double feet) |
| Constructs a Length from Feet. | |
| Length | art::Meters (double meters) |
| Constructs a Length from Meters. | |
| Length | art::Centimeters (double centimeters) |
| Constructs a Length from Centimeters. | |
| Length | art::Millimeters (double millimeters) |
| Constructs a Length from Millimeters. | |
| Length | art::Tiles (double tiles) |
| Constructs a Length from Tiles. | |
| Angle | art::Degrees (double degrees) |
| Constructs an Angle from Degrees. | |
| Angle | art::Radians (double radians) |
| Constructs an Angle from Radians. | |
| Angle | art::Revolutions (double revolutions) |
| Constructs an Angle from Revolutions. | |
| Angle | art::shortestTurnPath (const Angle target) |
| Returns the shortest turn path to reach the target angle. | |
Source containing several Unit classes.
This is the source defining various Unit classes. The classes aim to aid in dealing with angles and distances by providing a standard form for other classes to use. That way, any of the other units can be used and converted rather than writing seperate functions for different units.
Definition in file Units.cpp.