lemon_math 1.1.4 lemon_math: ^1.1.4 copied to clipboard
A utility library for making 2d games
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add lemon_math
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
lemon_math: ^1.1.4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lemon_math/abs.dart';
import 'package:lemon_math/adjacent.dart';
import 'package:lemon_math/angle.dart';
import 'package:lemon_math/angle_between.dart';
import 'package:lemon_math/clamp.dart';
import 'package:lemon_math/clamp01.dart';
import 'package:lemon_math/dart_lemon_math.dart';
import 'package:lemon_math/diff.dart';
import 'package:lemon_math/diff_over.dart';
import 'package:lemon_math/diff_under.dart';
import 'package:lemon_math/distance_between.dart';
import 'package:lemon_math/give_or_take.dart';
import 'package:lemon_math/golden_ratio.dart';
import 'package:lemon_math/hypotenuse.dart';
import 'package:lemon_math/normlize.dart';
import 'package:lemon_math/opposite.dart';
import 'package:lemon_math/pi2.dart';
import 'package:lemon_math/piHalf.dart';
import 'package:lemon_math/random.dart';
import 'package:lemon_math/randomAngle.dart';
import 'package:lemon_math/randomBool.dart';
import 'package:lemon_math/randomInt.dart';
import 'package:lemon_math/randomItem.dart';
import 'package:lemon_math/random_around.dart';
import 'package:lemon_math/random_between.dart';