Trig Functiions

How can we implement trigonometric functions in Xcode/Swift?

Easy. For example let’s say you have an angle of 30 degrees

let angle: Double = 30

will print:

Have a look at this page: - Swift Numerics

1 Like

The Swift math cheat sheet did not have these functions listed, so I wrongly assumed they were not available. Thanks for the link and the example.