findIsolines

abstract fun findIsolines(function: BinaryOperator<Number>, x1: Number, y1: Number, x2: Number, y2: Number, levels: Collection<Number>): Collection<Isoline>(source)

Find the isolines of the given function. You can specify which isolines will be extracted with the levels parameter: for each value included in the collection, the corresponding isoline will be extracted. 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.

Return

the isolines

Parameters

function

- the function for which to calculate the isolines

x1

- x coordinate of vertex 1, defining the rectangular space within which isolines will be calculated

y1

- y coordinate of vertex 1, defining the rectangular space within which isolines will be calculated

x2

- x coordinate of vertex 2, defining the rectangular space within which isolines will be calculated

y2

- y coordinate of vertex 2, defining the rectangular space within which isolines will be calculated

levels

- collection containing the levels of the isolines that will be calculated


abstract fun findIsolines(function: BinaryOperator<Number>, diagonal: Segment2D, levels: Collection<Number>): Collection<Isoline>(source)

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 four vertexes separately.

Return

the isolines

Parameters

function

- the function for which to calculate the isolines

diagonal

- the diagonal of the rectangular space within which isolines will be calculated

levels

- collection containing the levels of the isolines that will be calculated