INNER CODE UNIT · Dart

wLine

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

      wLine = math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2));
      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;
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…