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
lhsA value.
rhsAnother value.
Return Value
true
if thelhs
andrhs
are equal,false
otherwise.