/** * Returns the azimuth angle of the projection of this vector on the xy-plane. * * <p>Note: This version uses a faster, less accurate, calculation. */ public double horizontalAzimuthAngleFast() { double angle_MATHRAD = FastAtan.getInstance().atan2(this.getY(), this.getX()); return Azimuth.fromMathRad(angle_MATHRAD); }
/** Returns the azimuth angle of the projection of this vector on the xy-plane. */ public double horizontalAzimuthAngle() { double angle_MATHRAD = Math.atan2(this.getY(), this.getX()); return Azimuth.fromMathRad(angle_MATHRAD); }