Epicenter
in package
Data structure to handle epicenters
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- __destruct() : mixed
- __toString() : string
- Returns epicenter in lat, lon, depth readable format
- depth() : Depth
- Get epicenter depth
- point() : LatLon
- Get epicenter coordinates
Properties
$depth
private
Depth
$depth
$point
private
LatLon
$point
Methods
__construct()
public
__construct(LatLon $point, Depth $depth) : mixed
Parameters
__destruct()
public
__destruct() : mixed
__toString()
Returns epicenter in lat, lon, depth readable format
public
__toString() : string
Return values
string —lat, lon, depth ("%.5f,%.5f, %.2f km")
depth()
Get epicenter depth
public
depth() : Depth
Return values
Depth —epicenter depth
point()
Get epicenter coordinates
public
point() : LatLon
Return values
LatLon —epicenter coordinates