public interface IVertexValuator
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.
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.
Modifier and Type | Method and Description |
---|---|
double |
value(Vertex v)
Given a vertex v, obtain its value
|
double value(Vertex v)
v
- a vertexCopyright © 2021. All rights reserved.