文档

Unity Engine

Unity Engine

ToRadians(float)

Convert degrees to radians. This operates as deterministically as possible across platforms. See PhysicsMath.ToDegrees.
阅读时间1 分钟最后更新于 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.