meta data for this page
  •  

This is an old revision of the document!


Conversions

Conversions between Degrees and Radians

Convert the given angle (degrees) to radians.

degToRad

Convert the given angle (radians) to degrees.

radToDeg

Conversions of Radius to Segments

Calculate the number of segments from the given radius based on minimum length or angle. There are various round shapes that

let segments = radiusToSegments(3.5, 0.1, 0) /* use minimum length */