Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsRange Class Reference

Class of range. More...

Public Member Functions

 OnlineMapsRange (float min=float.MinValue, float max=float.MaxValue, float minLimit=OnlineMaps.MINZOOM, float maxLimit=OnlineMaps.MAXZOOM_EXT)
 Constructor.
 
float CheckAndFix (float value)
 Checks and limits value.
 
bool InRange (float value)
 Checks whether the number in the range.
 
override string ToString ()
 Converts a range to string.
 
bool Update (float newMin, float newMax)
 Updates the minimum and maximum values.
 

Public Attributes

float max = float.MaxValue
 Maximum value.
 
float min = float.MinValue
 Minimum value.
 
float maxLimit = OnlineMaps.MAXZOOM_EXT
 Maximum limit.
Uses in inspector.
 
float minLimit = OnlineMaps.MINZOOM
 Minimum limit.
Uses in inspector.
 

Detailed Description

Class of range.

Constructor & Destructor Documentation

◆ OnlineMapsRange()

OnlineMapsRange.OnlineMapsRange ( float min = float::MinValue,
float max = float::MaxValue,
float minLimit = OnlineMaps::MINZOOM,
float maxLimit = OnlineMaps::MAXZOOM_EXT )

Constructor.

Parameters
minMinimum value.
maxMaximum value.
minLimitMinimum limit.
maxLimitMaximum limit.

Member Function Documentation

◆ CheckAndFix()

float OnlineMapsRange.CheckAndFix ( float value)

Checks and limits value.

Parameters
valueValue
Returns
Value corresponding to the specified range.

◆ InRange()

bool OnlineMapsRange.InRange ( float value)

Checks whether the number in the range.

Parameters
valueValue
Returns
True - if the number is in the range, false - if not.

◆ ToString()

override string OnlineMapsRange.ToString ( )

Converts a range to string.

Returns
String

◆ Update()

bool OnlineMapsRange.Update ( float newMin,
float newMax )

Updates the minimum and maximum values.

Parameters
newMinMinimum value.
newMaxMaximum value.
Returns
True - if the range is changed, false - if not changed.