public class TriangularFacetInterpolator extends Object implements IInterpolatorOverTin
| Constructor and Description |
|---|
TriangularFacetInterpolator(IIncrementalTin tin)
Construct an interpolator that operates on the specified TIN.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMethod()
Gets a string describing the interpolation method
that can be used for labeling graphs and printouts.
|
double[] |
getSurfaceNormal()
Gets the unit normal to the surface at the position of the most
recent interpolation.
|
double |
interpolate(double x,
double y,
IVertexValuator valuator)
Perform linear interpolation treating the triangle that contains the
query point as a flat plane.
|
boolean |
isSurfaceNormalSupported()
Indicates whether the interpolation class supports the computation
of surface normals through the getUnitNormal() method.
|
void |
resetForChangeToTin()
Used by an application to reset the state data within the interpolator
when the content of the TIN may have changed.
|
public TriangularFacetInterpolator(IIncrementalTin tin)
tin - a valid instance of an incremental TIN.public void resetForChangeToTin()
resetForChangeToTin in interface IProcessUsingTinpublic double interpolate(double x,
double y,
IVertexValuator valuator)
This interpolation is not defined beyond the convex hull of the TIN and this method will produce a Double.NaN if the specified coordinates are exterior to the TIN.
interpolate in interface IInterpolatorOverTinx - the x coordinate for the interpolation pointy - the y coordinate for the interpolation pointvaluator - a valid valuator for interpreting the z value of each
vertex or a null value to use the default.public boolean isSurfaceNormalSupported()
IInterpolatorOverTinisSurfaceNormalSupported in interface IInterpolatorOverTinpublic double[] getSurfaceNormal()
getSurfaceNormal in interface IInterpolatorOverTinpublic String getMethod()
IInterpolatorOverTingetMethod in interface IInterpolatorOverTinCopyright © 2019. All rights reserved.