Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToRadians(float)

Convert degrees to radians. This operates as deterministically as possible across platforms. See PhysicsMath.ToDegrees.
Read time 1 minuteLast updated 10 days ago

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.