faa.tg.dynamicDensity.math.sector
Class SectorParametersCalculation

java.lang.Object
  extended by faa.tg.dynamicDensity.math.sector.SectorParametersCalculation

public class SectorParametersCalculation
extends java.lang.Object

This object represent calculation of sector area, sector major heading and sector aspect ratio. (Metron Algorithm) 1) Sector Area = 2 * area of sector bounding rectangle / Aspect Ratio 2) Aspect Ratio = d1 / min(d2, 10.0) where C = center of sector's bounding rectangle d1 = distance from C to furthest sector vertex d2 = distance from C to nearest sector boundary 3) Major Heading = heading C to V1(-180 to 180 degrees) where C = center of sector's bounding rectangle V1 = subsector vertex furthest from C X and Y in nautical miles. See the source SectorParametersCalculation.java

Version:
$Id: SectorParametersCalculation.java,v 1.4 2006/10/23 20:42:19 andrey Exp $
Author:
Andrey Zinatullin TGF L3/TITAN

Field Summary
(package private)  double a
           
(package private)  double A
           
(package private)  double b
           
(package private)  double B
           
private  Position2D C
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private)  double distance
           
(package private)  double distanceToPoint
           
(package private)  Vertex firstVert
           
private  Vertex maxXvertex
           
private  Vertex maxYvertex
           
private  Vertex minXvertex
           
private  Vertex minYvertex
           
(package private)  Vertex nextNextVert
           
(package private)  Vertex nextVert
           
private  java.util.Vector polygonvertices
           
 double SECTOR_AREA
           
 double SECTOR_ASPECT_RATIO
           
 double SECTOR_MAJOR_HEADING
           
(package private)  double test
           
 
Constructor Summary
SectorParametersCalculation(java.util.Vector polygonvertices, Vertex minYvertex, Vertex maxYvertex, Vertex minXvertex, Vertex maxXvertex)
           
 
Method Summary
private  double getD2()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

polygonvertices

private java.util.Vector polygonvertices

minYvertex

private Vertex minYvertex

maxYvertex

private Vertex maxYvertex

minXvertex

private Vertex minXvertex

maxXvertex

private Vertex maxXvertex

SECTOR_ASPECT_RATIO

public double SECTOR_ASPECT_RATIO

SECTOR_AREA

public double SECTOR_AREA

SECTOR_MAJOR_HEADING

public double SECTOR_MAJOR_HEADING

nextNextVert

Vertex nextNextVert

firstVert

Vertex firstVert

test

double test

a

double a

b

double b

A

double A

B

double B

distance

double distance

distanceToPoint

double distanceToPoint

C

private Position2D C

nextVert

Vertex nextVert
Constructor Detail

SectorParametersCalculation

public SectorParametersCalculation(java.util.Vector polygonvertices,
                                   Vertex minYvertex,
                                   Vertex maxYvertex,
                                   Vertex minXvertex,
                                   Vertex maxXvertex)
Method Detail

getD2

private double getD2()