Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Angle2DParser

Utility class to parse the arguments of attributes.

Hierarchy

  • Angle2DParser

Index

Methods

Methods

Static parseAngle

  • parseAngle(input: string): number
  • Parse angle strings. "p" means Pi. Ex) 3/4 p "d" means degree. if this unit was specified, the argument will be parsed as degree. Ex) 90d

    Parameters

    • input: string

      the string to parse.

    Returns number

    parsed angle in radians.

Generated using TypeDoc