#include "Geometry.h"
#include <stdio.h>
Include dependency graph for Geometry.C:
Go to the source code of this file.
Functions | |
int | sign (double d1) |
double | max (double d1, double d2) |
double | min (double d1, double d2) |
AngDeg | Rad2Deg (AngRad x) |
AngRad | Deg2Rad (AngDeg x) |
double | cosDeg (AngDeg x) |
double | sinDeg (AngDeg x) |
double | tanDeg (AngDeg x) |
AngDeg | atanDeg (double x) |
double | atan2Deg (double x, double y) |
AngDeg | acosDeg (double x) |
AngDeg | asinDeg (double x) |
bool | isAngInInterval (AngDeg ang, AngDeg angMin, AngDeg angMax) |
AngDeg | getBisectorTwoAngles (AngDeg angMin, AngDeg angMax) |
ostream & | operator<< (ostream &os, VecPosition v) |
ostream & | operator<< (ostream &os, Line l) |
File: Geometry.C Project: Robocup Soccer Simulation Team: UvA Trilearn Authors: Jelle Kok Created: 13/02/2001 Last Revision: $ID$ Contents: class declarations of different geometry classes:
Definition in file Geometry.C.
|
This function returns the principal value of the arc cosine of x in degrees using the built-in arc cosine function which returns this value in radians.
Definition at line 159 of file Geometry.C. |
|
This function returns the principal value of the arc sine of x in degrees using the built-in arc sine function which returns this value in radians.
Definition at line 173 of file Geometry.C. |
|
This function returns the principal value of the arc tangent of y/x in degrees using the signs of both arguments to determine the quadrant of the return value. For this the built-in 'atan2' function is used which returns this value in radians.
Definition at line 147 of file Geometry.C. |
|
This function returns the principal value of the arc tangent of x in degrees using the built-in arc tangent function which returns this value in radians.
Definition at line 134 of file Geometry.C. |
|
This function returns the cosine of a given angle in degrees using the built-in cosine function that works with angles in radians.
Definition at line 107 of file Geometry.C. |
|
This function converts an angle in degrees to the corresponding angle in radians.
Definition at line 98 of file Geometry.C. |
|
This method returns the bisector (average) of two angles. It deals with the boundary problem, thus when 'angMin' equals 170 and 'angMax' equals -100, -145 is returned.
Definition at line 210 of file Geometry.C. References AngDeg, atan2Deg(), cosDeg(), VecPosition::normalizeAngle(), and sinDeg(). |
|
This function returns a boolean value which indicates whether the value 'ang' (from interval [-180..180] lies in the interval [angMin..angMax]. Examples: isAngInInterval( -100, 4, -150) returns false isAngInInterval( 45, 4, -150) returns true
Definition at line 191 of file Geometry.C. References AngDeg. |
|
This function returns the maximum of two given doubles.
Definition at line 70 of file Geometry.C. |
|
This function returns the minimum of two given doubles.
Definition at line 79 of file Geometry.C. |
|
This function prints the line to the specified output stream in the format y = ax + b.
Definition at line 1249 of file Geometry.C. References Line::getACoefficient(), Line::getBCoefficient(), and Line::getCCoefficient(). |
|
Overloaded version of the C++ output operator for VecPositions. This operator makes it possible to use VecPositions in output statements (e.g. cout << v). The x- and y-coordinates of the VecPosition are printed in the format (x,y).
Definition at line 499 of file Geometry.C. References VecPosition::m_x, and VecPosition::m_y. |
|
This function converts an angle in radians to the corresponding angle in degrees.
Definition at line 89 of file Geometry.C. |
|
This function returns the sign of a give double. 1 is positive, -1 is negative
Definition at line 61 of file Geometry.C. |
|
This function returns the sine of a given angle in degrees using the built-in sine function that works with angles in radians.
Definition at line 116 of file Geometry.C. |
|
This function returns the tangent of a given angle in degrees using the built-in tangent function that works with angles in radians.
Definition at line 125 of file Geometry.C. |