atan2 method

DoubleField atan2(
  1. num y
)

Get db value with ATAN2(X,Y) function applied.

Return the arctangent of Y/X. The result is in radians. The result is placed into correct quadrant depending on the signs of X and Y.

Implementation

DoubleField atan2(num y) {
  DoubleField result = DoubleField();
  result.queryBuilder = () => 'ATAN2(${buildQuery()},?)';
  result.parametersBuilder = () => [...getParameters(), y];
  return result;
}