NTMapRange


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

A container class that defines a half closed range of values using minimum and maximum values.

  • 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 a MapRange object. The minimum value will be set to positive infinity and the maximum value to negative infinity.

    Declaration

    Objective-C

    - (id)init;
  • Constructs a MapRange object from min and max values. If min > max, the values will be swapped internally.

    Declaration

    Objective-C

    - (id)initWithMin:(float)min max:(float)max;

    Parameters

    min

    The min value.

    max

    The max value.

  • Returns the min value of this map range.

    Declaration

    Objective-C

    - (float)getMin;

    Return Value

    The min value of this map range.

  • Returns the max value of this map range.

    Declaration

    Objective-C

    - (float)getMax;

    Return Value

    The max value of this map range.

  • Tests if a value is in this map range. Value is considered in range if min <= val < max.

    Declaration

    Objective-C

    - (BOOL)inRange:(float)value;

    Parameters

    value

    The value to be tested.

    Return Value

    True if value is in this map range.

  • Calculate the midrange value.

    Declaration

    Objective-C

    - (float)getMidrange;

    Return Value

    The midrange value.

  • Calculates the length of this map range. Defined as max - min.

    Declaration

    Objective-C

    - (float)length;

    Return Value

    The length of this map range.

  • Checks for equality between this and another map tile.

    Declaration

    Objective-C

    - (BOOL)isEqualInternal:(NTMapRange *)mapRange;

    Parameters

    mapRange

    The other map range.

    Return Value

    True if equal.

  • 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 range, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this map range.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;