|
scsl 1.0.1
Shimmering Clarity Standard Library
|
Shimmering Clarity Math & Physics toolkit. More...
Namespaces | |
| namespace | estimation |
| Algorithms for estimation position, and system state. | |
| namespace | geom |
| Geometry-related code. | |
Functions | |
| std::vector< int > | Die (int m, int n) |
| Roll m die of n sides, returning a vector of the dice. | |
| int | DieTotal (int m, int n) |
| Roll m die of n sides, returning the total of the die. | |
| int | BestDie (int k, int m, int n) |
| Roll m die of n sides, and take the total of the top k die. | |
| float | RadiansToDegreesF (float rads) |
| Convert radians to degrees. | |
| double | RadiansToDegreesD (double rads) |
| Convert radians to degrees. | |
| float | DegreesToRadiansF (float degrees) |
| Convert degrees to radians. | |
| double | DegreesToRadiansD (double degrees) |
| Convert degrees to radians. | |
| double | RotateRadians (double theta0, double theta1) |
| RotateRadians rotates theta0 by theta1 radians, wrapping the result to MIN_RADIAN <= result <= MAX_RADIAN. | |
| void | DefaultEpsilon (double &epsilon) |
| Get the default epsilon value. | |
| void | DefaultEpsilon (float &epsilon) |
| Get the default epsilon value. | |
| void | DefaultEpsilon (int &epsilon) |
| Get the default epsilon for integer types. | |
Variables | |
| constexpr double | MAX_RADIAN = 2 * M_PI |
| MAX_RADIAN is a precomputed 2 * M_PI. | |
| constexpr double | MIN_RADIAN = -2 * M_PI |
| constexpr double | PI_D = 3.141592653589793 |
Shimmering Clarity Math & Physics toolkit.
scmp contains the chimmering clarity math and physics code.
The Shimmering Clarity contains code related to math and physics, particularly as relevant to game programming and robotics.
| int scmp::BestDie | ( | int | k, |
| int | m, | ||
| int | n | ||
| ) |
Roll m die of n sides, and take the total of the top k die.
| void scmp::DefaultEpsilon | ( | double & | epsilon | ) |
Get the default epsilon value.
| epsilon | The variable to store the epsilon value in. |
| void scmp::DefaultEpsilon | ( | float & | epsilon | ) |
Get the default epsilon value.
| epsilon | The variable to store the epsilon value in. |
| void scmp::DefaultEpsilon | ( | int & | epsilon | ) |
Get the default epsilon for integer types.
| epsilon | The variable to store the epsilon value in. |
| double scmp::DegreesToRadiansD | ( | double | degrees | ) |
Convert degrees to radians.
| degrees | the Angle in degrees |
| float scmp::DegreesToRadiansF | ( | float | degrees | ) |
Convert degrees to radians.
| degrees | the Angle in degrees |
| std::vector< int > scmp::Die | ( | int | m, |
| int | n | ||
| ) |
Roll m die of n sides, returning a vector of the dice.
| int scmp::DieTotal | ( | int | m, |
| int | n | ||
| ) |
Roll m die of n sides, returning the total of the die.
| double scmp::RadiansToDegreesD | ( | double | rads | ) |
Convert radians to degrees.
| rads | the Angle in radians |
| float scmp::RadiansToDegreesF | ( | float | rads | ) |
Convert radians to degrees.
| rads | the Angle in radians |
| double scmp::RotateRadians | ( | double | theta0, |
| double | theta1 | ||
| ) |
RotateRadians rotates theta0 by theta1 radians, wrapping the result to MIN_RADIAN <= result <= MAX_RADIAN.
| theta0 | |
| theta1 |
|
constexpr |
MAX_RADIAN is a precomputed 2 * M_PI.
|
constexpr |
|
constexpr |