ART v1.0-alpha
A Robot Template that raises the floor for VRC teams
Loading...
Searching...
No Matches
Units.h File Reference

Header containing several Unit classes. More...

#include <cmath>

Go to the source code of this file.

Classes

class  art::Length
 A Utility Unit class for Length. More...
 
class  art::Angle
 A Utility Unit class for Angles. More...
 

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.
 

Detailed Description

Header containing several Unit classes.

Author
Jath Alison (Jath..nosp@m.Alis.nosp@m.on@gm.nosp@m.ail..nosp@m.com)
Version
1.0-beta
Date
07-13-2024

This is the header that needs to be included to use the 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.h.