Skip to content

KBE3D / KBCore / Cesium / Math / fastApproximateAtan2

函数: fastApproximateAtan2()

fastApproximateAtan2(x: number, y: number): number

Computes a fast approximation of Atan2(x, y) for arbitrary input scalars.

Range reduction math based on nvidia's cg reference implementation: http://developer.download.nvidia.com/cg/atan2.html

参数

x

number

An input number that isn't zero if y is zero.

y

number

An input number that isn't zero if x is zero.

返回

number

An approximation of atan2(x, y)

KBE3D @3.0.0 Copyright © 2024-present KBE3D