maliput
|
Classes | |
class | MockBoundingRegion |
Enumerations | |
enum | CompareType { kAbsolute, kRelative } |
Functions | |
template<std::size_t N, typename Derived > | |
testing::AssertionResult | CompareVectors (const math::VectorBase< N, Derived > &v1, const math::VectorBase< N, Derived > &v2, double tolerance=0.0, CompareType compare_type=CompareType::kAbsolute) |
Assert that two vectors v1 and v2 are equal down to a certain tolerance . More... | |
template<std::size_t N> | |
testing::AssertionResult | CompareMatrices (const math::Matrix< N > &m1, const math::Matrix< N > &m2, double tolerance=0.0, CompareType compare_type=CompareType::kAbsolute) |
Assert that two matrices m1 and m2 are equal down to a certain tolerance . More... | |
|
strong |
testing::AssertionResult CompareMatrices | ( | const math::Matrix< N > & | m1, |
const math::Matrix< N > & | m2, | ||
double | tolerance = 0.0 , |
||
CompareType | compare_type = CompareType::kAbsolute |
||
) |
Assert that two matrices m1
and m2
are equal down to a certain tolerance
.
Instantiations for comparing Matrix2, Matrix3 and Matrix4 are provided.
m1 | The first matrix to compare. |
m2 | The second matrix to compare. |
tolerance | The tolerance for determining equivalence. |
compare_type | Whether the tolerance is absolute or relative. |
testing::AssertionResult CompareVectors | ( | const math::VectorBase< N, Derived > & | v1, |
const math::VectorBase< N, Derived > & | v2, | ||
double | tolerance = 0.0 , |
||
CompareType | compare_type = CompareType::kAbsolute |
||
) |
Assert that two vectors v1
and v2
are equal down to a certain tolerance
.
Instantiations for comparing Vector2, Vector3 and Vector4 are provided.
v1 | The first vector to compare. |
v2 | The second vector to compare. |
tolerance | The tolerance for determining equivalence. |
compare_type | Whether the tolerance is absolute or relative. |