ドキュメント

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.