PHP Class Point, AlgorithmsNYC

Show file Open project: AlgorithmsNYC/AlgorithmsNYC Class Usage Examples

Public Properties

Property Type Description
$anglePolarTable
$angleTable
$distanceTable
$guid
$x
$y

Public Methods

Method Description
__construct ( $coordX, $coordY, $guid = null )
__toString ( )
aireTriangle ( $pointA, $pointB, $pointC )
angle ( $pointA, $pointB, $pointC )
anglePolar ( $pointA, $pointB, $pointC ) * Polar angle difference between $pointA and $pointC, $pointB is the origin, $pointA is 0 angle
distance ( $point1, $point2 )
getDistanceTable ( )
isCrossing ( $pointA, $pointB, $pointC, $pointD )

Method Details

__construct() public method

public __construct ( $coordX, $coordY, $guid = null )

__toString() public method

public __toString ( )

aireTriangle() static public method

static public aireTriangle ( $pointA, $pointB, $pointC )

angle() static public method

static public angle ( $pointA, $pointB, $pointC )

anglePolar() static public method

* Polar angle difference between $pointA and $pointC, $pointB is the origin, $pointA is 0 angle
static public anglePolar ( $pointA, $pointB, $pointC )

distance() static public method

static public distance ( $point1, $point2 )

getDistanceTable() static public method

static public getDistanceTable ( )

isCrossing() static public method

static public isCrossing ( $pointA, $pointB, $pointC, $pointD )

Property Details

$anglePolarTable static public property

static public $anglePolarTable

$angleTable static public property

static public $angleTable

$distanceTable static public property

static public $distanceTable

$guid public property

public $guid

$x public property

public $x

$y public property

public $y