PHP Class Point, AlgorithmsNYC

显示文件 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_oe public_oe property

static public $anglePolarTable

$angleTable static_oe public_oe property

static public $angleTable

$distanceTable static_oe public_oe property

static public $distanceTable

$guid public_oe property

public $guid

$x public_oe property

public $x

$y public_oe property

public $y