pub fn angle_parser(input: &str) -> IResult<&str, f32>
Expand description

Parser for a angle value string.

Supported Formats:

  • 60deg / 10.234deg / -45deg (interpreted as degrees, converted to radians)
  • 3.1415rad (is interpreted as radians)
  • 3.1415 (is interpreted as radians)

TODO: support grad, turn suffixes, f64 version? https://developer.mozilla.org/en-US/docs/Web/CSS/angle