Angle

class Angle

A geometric angle whose value you access in either radians or degrees.

  • A numeric value representing the degree of the angle in degrees.

    Declaration

    var degrees: Double { get }
  • A numeric value representing the degree of the angle in radians

    Declaration

    var radians: Double { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Angle) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.