-
public interface IsolinesFinder
Defines an object capable of finding isolines (i.e. an isolines finding algorithm).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description interface
IsolinesFinder.BidimensionalFunction
Defines a basic bidimensional function.
-
Method Summary
Modifier and Type Method Description abstract Collection<Isoline>
findIsolines(IsolinesFinder.BidimensionalFunction function, Number x1, Number y1, Number x2, Number y2, Collection<Number> levels)
Find the isolines of the given function. abstract Collection<Isoline>
findIsolines(IsolinesFinder.BidimensionalFunction function, Segment2D diagonal, Collection<Number> levels)
Find the isolines of the given function. -
-
Method Detail
-
findIsolines
abstract Collection<Isoline> findIsolines(IsolinesFinder.BidimensionalFunction function, Number x1, Number y1, Number x2, Number y2, Collection<Number> levels)
Find the isolines of the given function. You can specify which isolines will be extracted with thelevels parameter: for each value included in the collection, the corresponding isoline will beextracted. Isolines will be calculated within a rectangular region defined by two opposite vertexes.This means that the algorithm will not consider the space outside the given region at all.
- Parameters:
function
- - the function for which to calculate the isolinesx1
- - x coordinate of vertex 1, defining the rectangular space within which isolineswill be calculatedy1
- - y coordinate of vertex 1, defining the rectangular space within which isolineswill be calculatedx2
- - x coordinate of vertex 2, defining the rectangular space within which isolineswill be calculatedy2
- - y coordinate of vertex 2, defining the rectangular space within which isolineswill be calculatedlevels
- - collection containing the levels of the isolines that will be calculated
-
findIsolines
abstract Collection<Isoline> findIsolines(IsolinesFinder.BidimensionalFunction function, Segment2D diagonal, Collection<Number> levels)
Find the isolines of the given function. This method is equivalent to findIsolines,with the difference that it allows you to specify the diagonal of the rectangular region, instead of the fourvertexes separately.
- Parameters:
function
- - the function for which to calculate the isolinesdiagonal
- - the diagonal of the rectangular space within which isolines will be calculatedlevels
- - collection containing the levels of the isolines that will be calculated
-
-
-
-