Exercise Steps
38/40
Converting Coordinate Systems
Any Queries?
geospatial.c
•
Add the function definition to
geospatial_functions
•
Add arg-info struct
•
Add
PHP_FUNCTION
implementation that uses
zend_parse_parameters
and calls
polar_to_cartesian
algorithms.h
•
Add macro for deg2rad and rad2deg:
algorithms.c
•
Implement algorithm
Run tests!:
make test