Syntax

TftArcTan2(fY As Float, fX As Float), Float

Parameters

Parameter

Description

fY

The Y-coordinate (argument y)

fX

The X-coordinate (argument x)

Overview

Returns the four-quadrant inverse tangent (tan⁻¹) of the given Y and X coordinates. 


The result is the angle in radians, ranging from -π to π. This function accounts for the signs of both arguments to determine the correct quadrant for the angle.

Example Usage

TftArcTan2(4,-3)

Created with the Personal Edition of HelpNDoc: Import and export Markdown documents