Package org.tinfour.interpolation
Interface IVertexValuator
-
- All Known Implementing Classes:
SmoothingFilter,VertexValuatorDefault
public interface IVertexValuatorAn interface for specifying methods of accessing a value from a Vertex.Clearly, the most straight-forward way to create a surface from a sample of vertices is by accessing their Z coordinates. But in cases where a derived value is required, or where a value needs to be computed using information available to the application but outside the scope of the TIN implementation, this interface provides a mechanism for doing so.
Development Notes
For a default implementation, see the VertexValuatorGetZ class.
The functionality provided by this interface seems like a natural candidate for the Java closure concept introduced with Java 8. At the time of this implementation, Java 8 is only a few months old and not yet in wide use. This design decision may be revisited later.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublevalue(Vertex v)Given a vertex v, obtain its value
-
-
-
Method Detail
-
value
double value(Vertex v)
Given a vertex v, obtain its value- Parameters:
v- a vertex- Returns:
- a value interpreted from vertex v.
-
-