Angle

public struct Angle : Hashable

A type representing a geometry angle.

  • The value of the angle in radians.

    Declaration

    Swift

    public var radians: Double
  • The value of the angle in degrees.

    Declaration

    Swift

    public var degrees: Double
  • Initializes an angle with a value in radians.

    Declaration

    Swift

    public init(radians: Double)
  • Initializes an angle with a value in degrees.

    Declaration

    Swift

    public init(degrees: Double)
  • Returns an angle initialized with a value in radians.

    Declaration

    Swift

    public static func radians(_ radians: Double) -> Angle
  • Returns an angle initialized with a value in degrees.

    Declaration

    Swift

    public static func degrees(_ degrees: Double) -> Angle