April 2015
Intermediate to advanced
556 pages
17h 47m
English
Your Vector structure should be able to report its angle in radians. Add a read-only, computed property to it called angle.
The angle of a vector can be expressed in Swift as:
atan2(y, x)
Read now
Unlock full access