INNER CODE UNIT · Dart

Math

roipeker/graphx · lib/src/math.dart:10

class Math {
  static final math.Random _rnd = math.Random();

  /// A mathematical constant for the ratio of the circumference of a circle
  /// to its diameter, expressed as `pi`, with a value of ~3.141592653589793.
  static const PI = math.pi;

  /// Shortcut for `Math.PI * 2`, represents a 360 degree angle
  static const PI_2 = math.pi * 2;

  /// Shortcut for `Math.PI/2`, represents an angle of 90 degrees in radians.
  static const PI1_2 = math.pi / 2;

  /// A mathematical constant for the base of natural logarithms,
  /// expressed as `e`.
  static const E = math.e;

  /// A mathematical constant for the natural logarithm of 10,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…