NTMapBounds


@interface NTMapBounds : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A container class that defines an axis aligned cuboid on the map using minimum and maximum map positions. Valid ranges for map bounds depend on the projection used.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Constructs an empty MapBounds object. The coordinates of the minimum map position will be set to positive infinity and the coordinates of the maximum map position will be set to negative infinity.

    Declaration

    Objective-C

    - (id)init;
  • Constructs a MapBounds object from a minimum and maximum map position. If a coordinate of the minimum map positon is larger than the same coordinate of the maximum map position then those coordinates will be swapped.

    Declaration

    Objective-C

    - (id)initWithMin:(NTMapPos *)min max:(NTMapPos *)max;

    Parameters

    min

    The minimum map position (south-west).

    max

    The maximum map position (north-east).

  • Checks for equality between this and another map bounds object.

    Declaration

    Objective-C

    - (BOOL)isEqualInternal:(NTMapBounds *)mapBounds;

    Parameters

    mapBounds

    The other map bounds object.

    Return Value

    True if equal.

  • Calculates the center map position of this map envelope object.

    Declaration

    Objective-C

    - (NTMapPos *)getCenter;

    Return Value

    The center postion if this map envelope object.

  • Calculates the difference vector between the maximum and minimum map positions of this map bounds object.

    Declaration

    Objective-C

    - (NTMapVec *)getDelta;

    Return Value

    The difference vector between maximum and minimum map positions of this map bounds object.

  • Returns the minimum (south west) map position of this map envelope object.

    Declaration

    Objective-C

    - (NTMapPos *)getMin;

    Return Value

    The minimum (south west) map position of this map envelope object.

  • Returns the maximum (north east) map position of this map envelope object.

    Declaration

    Objective-C

    - (NTMapPos *)getMax;

    Return Value

    The maximum (north east) map position of this map envelope object.

  • Tests whether this map bounds object contains a map position.

    Declaration

    Objective-C

    - (BOOL)containsPos:(NTMapPos *)pos;

    Parameters

    pos

    The map position.

    Return Value

    True if this map bounds object contains the map position.

  • Tests whether this map bounds object contains a another map bounds object.

    Declaration

    Objective-C

    - (BOOL)containsBounds:(NTMapBounds *)bounds;

    Parameters

    bounds

    The other map bounds object.

    Return Value

    True if this map bounds object contains the other map bounds object.

  • Tests whether this map bounds object intersects with a another map bounds object.

    Declaration

    Objective-C

    - (BOOL)intersects:(NTMapBounds *)bounds;

    Parameters

    bounds

    The other map bounds object.

    Return Value

    True if this map bounds object intersects with the other map bounds object.

  • Shrinks this map bounds object to the intersection of this bounds and given bounds object.

    Declaration

    Objective-C

    - (void)shrinkToIntersection:(NTMapBounds *)bounds;

    Parameters

    bounds

    The other map bounds object.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (int)hashInternal;

    Return Value

    The hash value of this object.

  • Creates a string representation of this map bounds object, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this map bounds object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;