drawFunction

abstract fun <T, P : Position2D<P>?> drawFunction(function: (in P) -> out Number, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)(source)

Draw the provided function.

Parameters

function

- the function

environment

- the environment (mainly used to make positions)

graphics

- the Graphics2D (where to draw the function)

wormhole

- the wormhole (to map env points to view points)

<T>

- concentration type

<P>

- position type