INNER CODE UNIT · Dart

angle

bernaferrari/color-studio · lib/gradient.dart:121

      angle = math.atan((y2 - y1) / (x2 - x1));

      print("x1: $x1 y1: $y1 line: $wLine x2: $x2 y2: $y2 angle: $angle");
    });
  }

  double xCornerDetection(double x) {
    if (x < 0) {
      x = 0;
    }
    if (x > widget.constraints.maxWidth - 24) {
      x = widget.constraints.maxWidth - 24;
    }

    return x;
  }

  double yCornerDetection(double y) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…