What does this piece of code in C++ mean? [closed]
- by user1838418
const double pi = 3.141592653589793;
const angle rightangle = pi/2;
inline angle deg2rad(angle degree)
{
return degree * rightangle / 90.;
}
angle function1()
{
return rightangle * ( ((double) rand()) / ((double) RAND_MAX) - .5 );
}
bool setmargin(angle theta, angle phi, angle margin)
{
return (theta > phi-margin && theta < phi+margin);
}
Please help me. I'm new to C++