Class TangentLine

All Implemented Interfaces:
Computable, Serializable

public class TangentLine extends DrawGeometric
A Tangent line is a line that is tangent to the graph of a specified function of one argument at a specified value of its argument. If added to a CoordinateRect, it will appear as a line. A TangentLine is a Computable object, so should be added to a Controller to be recomputed when the Value or Function changes.
See Also:
  • Constructor Details

    • TangentLine

      public TangentLine(Value x, Function f)
      Create a tangent line to the graph of a function.
      Parameters:
      x - The x-coordinate where the tangent is drawn.
      f - The line is tangent to the graph of this function. This should be a function of one variable.