faa.tg.dynamicDensity.math.sector
Class SectorParametersCalculation
java.lang.Object
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
|
Method Summary |
private double |
getD2()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SectorParametersCalculation
public SectorParametersCalculation(java.util.Vector polygonvertices,
Vertex minYvertex,
Vertex maxYvertex,
Vertex minXvertex,
Vertex maxXvertex)
getD2
private double getD2()