Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CLLocationDegrees initialization

How do you make a CLLocationDegrees? It's not a float, so what is it?

like image 895
agentfll Avatar asked Mar 23 '10 02:03

agentfll


2 Answers

According to the CLLocation documentation, CLLocationDegrees is simply a double. So to create one, you could do something as simple as this:

CLLocationDegrees degrees = 45;
like image 199
Jeff Kelley Avatar answered Oct 23 '22 13:10

Jeff Kelley


CLLocationDegrees are typedefed doubles: http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html#//apple_ref/doc/uid/TP40007126-CH3-SW19

ex: CLLocationDegrees myDegrees = 2.313224;

like image 36
Eric Schweichler Avatar answered Oct 23 '22 12:10

Eric Schweichler