Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Point
+ Граф наследования:Point:

Открытые члены

 __construct (float $lat, float $lng)
 
 getLat ()
 
 getLng ()
 
 asArray ()
 
- Открытые члены унаследованные от BaseGeometry
 getGeometryType ()
 
 contains (BaseGeometry $geometry)
 

Защищенные члены

 isValidLatitude (float $latitude)
 
 isValidLongitude (float $longitude)
 
 isNumericInBounds (float $value, float $lower, float $upper)
 

Защищенные данные

 $lat
 
 $lng
 

Подробное описание

См. определение в файле point.php строка 7

Конструктор(ы)

◆ __construct()

__construct ( float $lat,
float $lng )
Аргументы
float$lat-90.0 .. +90.0
float$lng-180.0 .. +180.0
Исключения
InvalidArgumentException

См. определение в файле point.php строка 21

Методы

◆ asArray()

asArray ( )

@inheritDoc

Переопределяет метод предка BaseGeometry.

См. определение в файле point.php строка 58

◆ getLat()

getLat ( )
Возвращает
float

См. определение в файле point.php строка 42

◆ getLng()

getLng ( )
Возвращает
float

См. определение в файле point.php строка 50

◆ isNumericInBounds()

isNumericInBounds ( float $value,
float $lower,
float $upper )
protected

Checks if the given value is (1) numeric, and (2) between lower and upper bounds (including the bounds values).

См. определение в файле point.php строка 88

◆ isValidLatitude()

isValidLatitude ( float $latitude)
protected
Аргументы
float$latitude
Возвращает
bool

См. определение в файле point.php строка 70

◆ isValidLongitude()

isValidLongitude ( float $longitude)
protected
Аргументы
float$longitude
Возвращает
bool

См. определение в файле point.php строка 79

Данные класса

◆ $lat

$lat
protected

См. определение в файле point.php строка 10

◆ $lng

$lng
protected

См. определение в файле point.php строка 13