Skip to main content
Module

x/denops_std/function/mod.ts>atan2

📚 Standard module for denops.vim
Go to Latest
function atan2
import { atan2 } from "https://deno.land/x/denops_std@v4.1.4/function/mod.ts";

Return the arc tangent of {expr1} / {expr2}, measured in radians, as a |Float| in the range [-pi, pi]. {expr1} and {expr2} must evaluate to a |Float| or a |Number|. Returns 0.0 if {expr1} or {expr2} is not a |Float| or a |Number|. Examples: :echo atan2(-1, 1) -0.785398 :echo atan2(1, -1) 2.356194 Can also be used as a |method|: Compute()->atan2(1) {only available when compiled with the |+float| feature}

Parameters

denops: Denops
expr1: unknown
expr2: unknown

Returns

Promise<unknown>