public class TriangleCount extends Object
Constructor and Description |
---|
TriangleCount()
Create an instance for tabulating a survey of
the triangles which may or may not be members of a TIN.
|
TriangleCount(IIncrementalTin tin)
A constructor that performs a survey of the TIN to gather statistics
about the triangles that comprise it.
|
Modifier and Type | Method and Description |
---|---|
double |
getAreaMax()
Gets the maximum area of the triangles in the TIN.
|
double |
getAreaMean()
Get the mean area of the triangles in the TIN.
|
double |
getAreaMin()
Gets the minimum area of the triangles in the TIN.
|
double |
getAreaStandardDeviation()
Gets the standard deviation of the triangles in the TIN.
|
double |
getAreaSum()
Gets the sum of the area of all triangles in the TIN.
|
int |
getCount()
Get the number of triangles in the TIN.
|
void |
tabulateTriangle(Vertex vA,
Vertex vB,
Vertex vC)
Compute area for the triangle specified by the vertex arguments and
add it to the triangle count and area summations.
|
public TriangleCount()
public TriangleCount(IIncrementalTin tin)
tin
- a valid instance of an incremental tinpublic final void tabulateTriangle(Vertex vA, Vertex vB, Vertex vC)
vA
- the initial vertex, given in counterclockwise ordervB
- the second vertex, given in counterclockwise ordervC
- the third vertex, given in counterclockwise orderpublic int getCount()
public double getAreaSum()
public double getAreaMean()
public double getAreaStandardDeviation()
public double getAreaMin()
public double getAreaMax()
Copyright © 2021. All rights reserved.