Package 

Interface FunctionDrawer

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 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)