Angle

public struct Angle
extension Angle: Equatable

Model of an angle.

  • Angle with a value of 0.

    Declaration

    Swift

    public static let zero: Angle
  • Value in Radians.

    Declaration

    Swift

    public let radians: Radians
  • Value within -180°…180°.

    Declaration

    Swift

    public var normalized: Angle { get }
  • Value in Degrees.

    Declaration

    Swift

    public var degrees: Degrees { get }

Initializers

  • Creates an Angle with the given radians value.

    Declaration

    Swift

    public init(radians: Radians)
  • Creates an Angle with the given degrees value.

    Declaration

    Swift

    public init(degrees: Degrees)
  • Declaration

    Swift

    public static func == (lhs: Angle, rhs: Angle) -> Bool

    Return Value

    true if the normalized values of each angle are equivalent. Otherwise, false.