기술 자료

Unity Engine

Unity Engine

ToRadians(float)

Convert degrees to radians. This operates as deterministically as possible across platforms. See PhysicsMath.ToDegrees.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static float ToRadians(float degrees)

Parameters

degrees

The degree value to convert to radians.

Returns

Type

Description

floatThe value converted to radians.