-
- All Implemented Interfaces:
public interface FunctionDrawer
Defines an object capable of drawing functions that take a Position of type P as input and give a Number as output.
-
-
Method Summary
Modifier and Type Method Description abstract <T, P extends Position2D<P>> void
drawFunction(Function<out Object, out Number> function, Environment<T, P> environment, Graphics2D graphics, Wormhole2D<P> wormhole)
Draw the provided function. -
-
Method Detail
-
drawFunction
abstract <T, P extends Position2D<P>> void drawFunction(Function<out Object, out Number> function, Environment<T, P> environment, Graphics2D graphics, Wormhole2D<P> wormhole)
Draw the provided function.
- Parameters:
function
- - the functionenvironment
- - 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)
-
-
-
-