Packagenet.systemeD.potlatch2.tools
Classpublic class Quadrilateralise

Tool to transform a closed way by making corners right-angled, if possible. Call the static function quadrilateralise().



Public Methods
 MethodDefined by
  
Quadrilateralise(way_:Way, performAction_:Function)
Private function that had to be declared public - do not call from outside this package.
Quadrilateralise
  
quadrilateralise(way:Way, performAction:Function):Boolean
[static] Attempts to make all corners of a way right angles.
Quadrilateralise
Constructor detail
Quadrilateralise()constructor
public function Quadrilateralise(way_:Way, performAction_:Function)

Private function that had to be declared public - do not call from outside this package.

Parameters
way_:Way
 
performAction_:Function
Method detail
quadrilateralise()method
public static function quadrilateralise(way:Way, performAction:Function):Boolean

Attempts to make all corners of a way right angles. Returns true if it thought it was successful and false if it failed. If it fails it does not modify the way.

Parameters
way:Way — Way to be transformed.
 
performAction:Function

Returns
Boolean