BDPoint
@interface BDPoint : BDGeometry <NSCopying, NSCoding>
@brief A geographic point expressed in latitude and longitude coordinates.
-
Convenience constructor to create a @ref BDPoint “point” with a longitude and latitude, in degrees.
Declaration
Objective-C
+ (instancetype)pointWithLongitude:(BDLocationDegrees)longitude latitude:(BDLocationDegrees)latitude;
Parameters
longitude
The longitude in degrees. Values should be in the range -180 < 0 <= 180.
latitude
The latitude in degrees. Values should be in the range -90 < 0 <= 90.
-
Initializes a point with values for for longitude and latitude, in degrees.
Declaration
Objective-C
- (instancetype)initWithLongitude:(BDLocationDegrees)longitude latitude:(BDLocationDegrees)latitude;
Parameters
longitude
The longitude in degrees. Values should be in the range -180 < 0 <= 180.
latitude
The latitude in degrees. Values should be in the range -90 < 0 <= 90.
-
Initializes a point with longitude and latitude in degrees.
Declaration
Objective-C
- (instancetype)initWithCoordinate:(BDLocationCoordinate2D)coordinate;
Parameters
coordinate
The coordinate as a Core Location structure.
-
@returns a string representation of this points’ degrees latitude, e.g. “12.34°”
Declaration
Objective-C
- (NSString *)latitudeString;
-
@returns a string representation of this points’ degrees longitude, e.g. “359.99°”
Declaration
Objective-C
- (NSString *)longitudeString;
-
The longitudinal component of this points location, in the range -180 < 0 <= 180 degrees.
Declaration
Objective-C
@property (nonatomic) BDLocationDegrees longitude;
-
The latitudinal component of this points location, in the range -90 < 0 <= 90 degrees.
Declaration
Objective-C
@property (nonatomic) BDLocationDegrees latitude;
-
This points location, expressed as a BDLocationCoordinate2D structure.
Declaration
Objective-C
@property (nonatomic, readonly) BDLocationCoordinate2D coordinate;
-
@returns A CGPoint with longitude/latitude in degrees for the x/y coordinates.
Declaration
Objective-C
- (CGPoint)cgPoint;
-
Undocumented
Declaration
Objective-C
- (BOOL)isEqual: (id)other;
-
Undocumented
Declaration
Objective-C
- (BOOL)isEqualToPoint: (BDPoint *)point;
-
Undocumented
Declaration
Objective-C
- (NSUInteger)hash;
-
@returns YES if the point is at 0 degrees latitude and longitude. NO otherwise.
Declaration
Objective-C
- (BOOL)isOrigin;