League\Geotools\Geotools::vertex PHP Method

vertex() public method

{@inheritDoc}
public vertex ( )
    public function vertex()
    {
        return new Vertex();
    }

Usage Example

Exemplo n.º 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $ellipsoid = Ellipsoid::createFromName($input->getOption('ellipsoid'));
     $from = new Coordinate($input->getArgument('origin'), $ellipsoid);
     $to = new Coordinate($input->getArgument('destination'), $ellipsoid);
     $geotools = new Geotools();
     $output->writeln(sprintf('<value>%s</value>', $geotools->vertex()->setFrom($from)->setTo($to)->finalBearing()));
 }
All Usage Examples Of League\Geotools\Geotools::vertex