Package hec.map.nettin
Class TriangleContainer
java.lang.Object
hec.map.nettin.TriangleContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
int[]
int[]
int[]
-
Constructor Summary
ConstructorsConstructorDescriptionTriangleContainer
(int size) TriangleContainer
(int[] argIntEdgeIdA, int[] argIntEdgeIdB, int[] argIntEdgeIdC) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriangle
(int id, int argIntEdgeAId, int argIntEdgeBId, int argIntEdgeCId) boolean
calcElevStats
(int id, EdgeContainer ec, NodeContainer nc, float[] val) calc max min mean and area of the triangleboolean
getTriangleNodes
(int id, EdgeContainer ec, int[] nodes) get the node id's for a specified trianglefloat
interpolateDepth
(int id, WorldPt pt, EdgeContainer ec, NodeContainer nodeCon) interpolate the depth at a world coordinate based on a specific triangleint
size()
-
Field Details
-
_size
protected int _size -
intEdgeIdA
public int[] intEdgeIdA -
intEdgeIdB
public int[] intEdgeIdB -
intEdgeIdC
public int[] intEdgeIdC
-
-
Constructor Details
-
TriangleContainer
public TriangleContainer(int size) -
TriangleContainer
public TriangleContainer(int[] argIntEdgeIdA, int[] argIntEdgeIdB, int[] argIntEdgeIdC)
-
-
Method Details
-
addTriangle
public void addTriangle(int id, int argIntEdgeAId, int argIntEdgeBId, int argIntEdgeCId) -
size
public int size() -
getTriangleNodes
get the node id's for a specified triangle -
interpolateDepth
interpolate the depth at a world coordinate based on a specific triangle -
calcElevStats
calc max min mean and area of the triangle
-