기술 자료

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분최근 업데이트: 한 달 전

Definition

public static float Atan2(float y, float x)

Parameters

The Y axis.

The X axis.

Returns

Type

Description

floatThe angle in radians.