Geometry
-
The
VBDClockDirectionFormatter
class provides properly formatted descriptions of headings relative to the user, known as clock positions. For example, a value of90
may be formatted as “3 o’clock”, depending on the locale.Use this class to create localized heading strings when displaying directions relative to the user’s current location and heading. To format a direction irrespective of the user’s orientation, use
See moreVBDCompassDirectionFormatter
instead.Declaration
Objective-C
@interface VBDClockDirectionFormatter : NSFormatter
-
The
VBDCompassDirectionFormatter
class provides properly formatted descriptions of absolute headings. For example, a value of90
may be formatted as “east”, depending on the locale.Use this class to create localized heading strings when displaying directions irrespective of the user’s current location. To format a direction relative to the user’s current location, use
See moreVBDCompassDirectionFormatter
instead.Declaration
Objective-C
@interface VBDCompassDirectionFormatter : NSFormatter
-
A rectangular area as measured on a two-dimensional map projection.
See moreDeclaration
Objective-C
struct VBDCoordinateBounds {}
-
Returns
YES
if the two coordinate bounds are equal to each other.Declaration
Objective-C
static inline BOOL VBDCoordinateBoundsEqualToCoordinateBounds(VBDCoordinateBounds bounds1, VBDCoordinateBounds bounds2)
-
Returns the area spanned by the coordinate bounds.
Declaration
Objective-C
static inline VBDCoordinateSpan VBDCoordinateBoundsGetCoordinateSpan(VBDCoordinateBounds bounds)
-
Returns
YES
if the coordinate bounds covers no area.Note
A bounds may be empty but have a non-zero coordinate span (e.g., when its northeast point lies due north of its southwest point).Declaration
Objective-C
static inline BOOL VBDCoordinateBoundsIsEmpty(VBDCoordinateBounds bounds)
-
Creates a new
VBDCoordinateBounds
structure from the given southwest and northeast coordinates.Declaration
Objective-C
static inline VBDCoordinateBounds VBDCoordinateBoundsMake(CLLocationCoordinate2D sw, CLLocationCoordinate2D ne)
-
Returns a coordinate bounds with southwest and northeast coordinates that are offset from those of the source bounds.
Declaration
Objective-C
static inline VBDCoordinateBounds VBDCoordinateBoundsOffset(VBDCoordinateBounds bounds, VBDCoordinateSpan offset)
-
Defines the area spanned by an
See moreVBDCoordinateBounds
.Declaration
Objective-C
struct VBDCoordinateSpan {}
-
Returns
YES
if the two coordinate spans represent the same latitudinal change and the same longitudinal change.Declaration
Objective-C
static inline BOOL VBDCoordinateSpanEqualToCoordinateSpan(VBDCoordinateSpan span1, VBDCoordinateSpan span2)
-
Creates a new
VBDCoordinateSpan
from the given latitudinal and longitudinal deltas.Declaration
Objective-C
static inline VBDCoordinateSpan VBDCoordinateSpanMake(CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta)
-
An area of zero width and zero height.
Declaration
Objective-C
extern const VBDCoordinateSpan VBDCoordinateSpanZero
-
Returns degrees, converted from radians.
Declaration
Objective-C
static inline CLLocationDegrees VBDDegreesFromRadians(CGFloat radians)
-
Returns radians, converted from degrees.
Declaration
Objective-C
static inline CGFloat VBDRadiansFromDegrees(CLLocationDegrees degrees)
-
Returns a formatted string for the given coordinate bounds.
Declaration
Objective-C
static inline NSString *_Nonnull VBDStringFromCoordinateBounds( VBDCoordinateBounds bounds)
-
The
See moreVBDCoordinateFormatter
class provides properly formatted descriptions of geographic coordinate pairs. Use this class to create localized coordinate strings when displaying location information to users.Declaration
Objective-C
@interface VBDCoordinateFormatter : NSFormatter