Copied!

Vertex class

CloneableInstantiable
Methods
public destination( $bearing, $distance)
 

Returns the destination point with a given bearing in degrees travelling along a
(shortest distance) great circle arc and a distance in meters.

  • param int $bearing The bearing of the origin in degrees.
  • param int $distance The distance from the origin in meters.
  • return CoordinateInterface
public finalBearing()
 

Returns the final bearing from the origin coordinate
to the destination coordinate in degrees.

  • return float The final bearing in degrees
public finalCardinal()
 

Returns the final cardinal point / direction from the origin coordinate to
the destination coordinate.

  • see http://en.wikipedia.org/wiki/Cardinal_direction
  • return string The final cardinal point / direction
public getDeterminant(League\Geotools\Vertex\Vertex $vertex)
 

Returns the determinant value between $this (vertex) and another vertex.

public getFrom()
 
    public getGradient()
     
      public getOrdinateIntercept()
       
        public getOtherCoordinate(League\Geotools\Coordinate\CoordinateInterface $coordinate)
         

        Returns the other coordinate who is not the coordinate passed on argument

        • param CoordinateInterface $coordinate
        • return null|Coordinate
        public getPrecision()
         
        • return int
        public getTo()
         
          public initialBearing()
           

          Returns the initial bearing from the origin coordinate
          to the destination coordinate in degrees.

          • return float The initial bearing in degrees
          public initialCardinal()
           

          Returns the initial cardinal point / direction from the origin coordinate to
          the destination coordinate.

          • see http://en.wikipedia.org/wiki/Cardinal_direction
          • return string The initial cardinal point / direction
          public isOnSameLine(League\Geotools\Vertex\Vertex $vertex)
           

          Returns true if the vertex passed on argument is on the same line as this object

          public middle()
           

          Returns the half-way point / coordinate along a great circle
          path between the origin and the destination coordinates.

          • return CoordinateInterface
          public setFrom(League\Geotools\Coordinate\CoordinateInterface $from)
           
            public setPrecision( $precision)
             
            • param int $precision
            • return $this
            public setTo(League\Geotools\Coordinate\CoordinateInterface $to)
             
              Properties
              protected $from
               

              The origin coordinate.

              • var CoordinateInterface
              protected $gradient
               
              • var float
              protected $ordinateIntercept
               
              • var float
              protected $to
               

              The destination coordinate.

              • var CoordinateInterface
              Properties
              private $precision
               
              • var int
              © 2022 Bruce Wells
              Search Namespaces \ Classes
              Configuration