Skip to content
Glyphs
  • Python
  • Core:
  • Objective-C
  • Swift
  • Python
  • GlyphsCore
    • Geometry Helpers
      • GSNormalizeAngleRAD
  1. GlyphsCore
  2. Geometry Helpers

Function

GSNormalizeAngleRAD

Returns a value in the interval [0, 2π).

Not available in Swift.

Declaration

static CGFloat GSNormalizeAngleRAD(CGFloat angle);

Declaration

GSNormalizeAngleRAD(angle: float) -> float

See Also

Angles and Slopes

  • GSNormalizeAngleDEG

    Returns a value in the interval [0, 360).

  • GSNormalizeAngleDirection(_:_:)GSNormalizeAngleDirectionGSNormalizeAngleDirection

    Returns a version of the angle that matches the given direction.

  • GSSlope(_:_:)GSSlopeGSSlope