文档

Unity Engine

Unity Engine

Atan2(float, float)

Calculate the arc-tangent i.e. the angle of the provided slope y/x. This operates as deterministically as possible across platforms.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static float Atan2(float y, float x)

Parameters

The Y axis.

The X axis.

Returns

Type

Description

floatThe angle in radians.