Quantcast

Documentation Center

  • Trial Software
  • Product Updates

degtorad

Convert angles from degrees to radians

Syntax

angleInRadians = degtorad(angleInDegrees)

Description

angleInRadians = degtorad(angleInDegrees) converts angle units from degrees to radians. This is both an angle conversion function and a distance conversion function, since arc length can be a measure of distance in either radians or degrees, provided that the radius is known.

Examples

Show that there are 2π radians in a full circle:

2*pi - degtorad(360)

ans =
     0

See Also

| | | |

Was this topic helpful?