createShape method

  1. @protected
CGMPath createShape(
  1. CGMDisplay display,
  2. double centerFirstDistance,
  3. double centerSecondDistance
)

Implementation

@protected
CGMPath createShape(CGMDisplay display, double centerFirstDistance, double centerSecondDistance) {
  return display.canvas.createPath()
    ..addOval(
      center: Vector2(
        -centerFirstDistance,
        -centerSecondDistance,
      ),
      radii: Vector2(
        centerFirstDistance * 2,
        centerSecondDistance * 2,
      ),
    );
}