X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=graphiq%2Flibrary%2Fgeometric%2Fpoint.h;fp=graphiq%2Flibrary%2Fgeometric%2Fpoint.h;h=00ed75a8bfbf9baabe9d174cbd3cad094a6a7279;hb=936edc460f256ba5ddba2ad1c80e8d278b9608cc;hp=0ebda9839ea43fbfe6565c76bc997d0bec696b57;hpb=fa14daffb0e9594769d46885433b3e0b9ea4e6c5;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