TangentLine constructor

TangentLine(
  1. VMobject vmob,
  2. double alpha, {
  3. double dAlpha = 1e-6,
  4. double length = 1,
  5. double buff = 0,
  6. double? pathArc,
  7. Color color = WHITE,
})

Implementation

TangentLine(
  VMobject vmob,
  double alpha, {
  double dAlpha = 1e-6,
  double length = 1,
  double buff = 0,
  double? pathArc,
  Color color = WHITE,
}) : super(
          start: vmob.pointFromProportion(clip(alpha - dAlpha, 0, 1)),
          end: vmob.pointFromProportion(clip(alpha + dAlpha, 0, 1)),
          buff: buff,
          pathArc: pathArc,
          color: color) {
  scaleUniformly(length / getLength());
}