X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=graphiq%2Flibrary%2Fgeometric%2Fpoint.h;h=00ed75a8bfbf9baabe9d174cbd3cad094a6a7279;hb=07a5d2a8d31b530296fe27a4f5b514f916e61f2a;hp=0ebda9839ea43fbfe6565c76bc997d0bec696b57;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/graphiq/library/geometric/point.h b/graphiq/library/geometric/point.h index 0ebda983..00ed75a8 100644 --- a/graphiq/library/geometric/point.h +++ b/graphiq/library/geometric/point.h @@ -121,7 +121,7 @@ void point::set(numeric_type x, numeric_type y) template numeric_type point::r() const { - const double sumsquar = square(x()) + square(y()); + const double sumsquar = basis::square(x()) + basis::square(y()); return numeric_type(sqrt(sumsquar)); } @@ -132,7 +132,7 @@ void point::set(numeric_type r, double_angle theta) template numeric_type point::distance(const point &p2) const { - const double sumsquar = square(p2.x() - x()) + square(p2.y() - y()); + const double sumsquar = basis::square(p2.x() - x()) + basis::square(p2.y() - y()); return numeric_type(sqrt(sumsquar)); } @@ -170,7 +170,7 @@ bool point::unpack(basis::byte_array &packed_form) template numeric_type point::magnitude() const { - const double sumsquar = square(x()) + square(y()); + const double sumsquar = basis::square(x()) + basis::square(y()); return numeric_type(sqrt(sumsquar)); } @@ -195,8 +195,8 @@ bool point::operator == (const point &arg2) const { // this bit should be part of the floating point stuff... double epsilon = 1e-10; - return (absolute_value(x() - arg2.x()) <= epsilon) - && (absolute_value(y() - arg2.y()) <= epsilon); + return (basis::absolute_value(x() - arg2.x()) <= epsilon) + && (basis::absolute_value(y() - arg2.y()) <= epsilon); } template