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
The degree value to convert to radians.
Returns
Type | Description |
|---|---|
| float | The value converted to radians. |