![]() |
RoboCup2D Tutorial
|
rcsc/geom/angle_deg.h
This class converts angles to degrees. As we all know, the mathematic functions in ANSI C are represented in radians. Thus, this class is extremely important in several calculations during the match.
In the picture above, if we have a point P in P(4, 3), then the angle φ will be:
Useful methods on this class:
This class has several other useful methods such as sin, tangent, arctangent and radians, besides overloading of arithmetical operators.