Go to the documentation of this file.
56 double degrees,
double sine,
double cosine,
double semicirc,
58 :
v(val),
t(type),
rad(radians),
deg(degrees),
sin(sine),
59 cos(cosine),
sc(semicirc),
tan(tangent)
84 TUDEF(
"Angle",
"Angle");
85 const double radians = 0.52359877559829881566;
86 const double degrees = 30.0;
87 const double semicirc = 0.16666666666666666666;
88 const double sine =
::sin(radians);
89 const double cosine =
::cos(radians);
90 const double tangent =
::tan(radians);
154 TUDEF(
"Angle",
"setValue");
164 ::tan(::asin(0.34)) },
167 ::tan(::acos(0.78)) },
169 unsigned numTests =
sizeof(testData) /
sizeof(testData[0]);
170 for (
unsigned testNum = 0; testNum < numTests; testNum++)
172 const TestData& td(testData[testNum]);
188 unsigned errorTotal = 0;
194 std::cout <<
"Total Failures for " << __FILE__ <<
": " << errorTotal
@ SemiCircle
Value is in semi-circles (aka half-cycles).
const double DEG2RAD
Multiply degrees by DEG2RAD to get radians.
double rad() const
Get the angle in radians.
double semicirc() const
Get the angle in semi-circles (aka half-cycles).
double tan() const
Get the tangent of this angle.
#define TUASSERTE(TYPE, EXP, GOT)
double sin() const
Get the sine of this angle.
const double PI
GPS value of PI; also specified by GAL.
double sin(gnsstk::Angle x)
@ Rad
Value is in radians.
const double RAD2DEG
Multiply radians by RAD2DEG to get degrees.
@ Sin
Value is the sine of the angle.
@ Cos
Value is the cosine of the angle.
double cos() const
Get the cosine of this angle.
TestData(double val, gnsstk::AngleType type, double radians, double degrees, double sine, double cosine, double semicirc, double tangent)
@ Deg
Value is in degrees.
#define TUASSERTFEPS(EXP, GOT, EPS)
double deg() const
Get the angle in degrees.
double cos(gnsstk::Angle x)
#define TUDEF(CLASS, METHOD)
double tan(gnsstk::Angle x)
void setValue(double v, AngleType t)
unsigned constructorTest()
static const double epsilon
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38