Rename exact_equal to exactly_equal
This commit is contained in:
parent
30060de999
commit
406b70f1c3
@ -84,7 +84,7 @@ almost_equal (const double &a, const double &b);
|
|||||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool
|
bool
|
||||||
exact_equal (const T &a, const T &b)
|
exactly_equal (const T &a, const T &b)
|
||||||
{ return a == b; }
|
{ return a == b; }
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
|
@ -124,10 +124,10 @@ matrix::to_global (const util::point &p) const {
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
matrix::is_affine (void) const {
|
matrix::is_affine (void) const {
|
||||||
return exact_equal (values[3][0], 0.0) &&
|
return exactly_equal (values[3][0], 0.0) &&
|
||||||
exact_equal (values[3][1], 0.0) &&
|
exactly_equal (values[3][1], 0.0) &&
|
||||||
exact_equal (values[3][2], 0.0) &&
|
exactly_equal (values[3][2], 0.0) &&
|
||||||
exact_equal (values[3][3], 1.0);
|
exactly_equal (values[3][3], 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user