A vector and matrix math library for 2D and 3D applications.
- Vectors
- Vector lists
- Affine transformations
- Projection transformations
- OpenGL friendliness
- 2D and 3D vectors
- 2D rotation
- Everything else
aa_vectors.dart is not (yet) available on Pub and must be had from Github.
To get the latest commited version (which may or may not be broken):
In your pubspec.yaml
:
dependencies:
vector_math:
git: https://github.com/argentiapparatus/aa_vectors.dart.git
To get a specific release, tag or branch (which may or may not be broken):
dependencies:
vector_math:
git: https://github.com/argentiapparatus/aa_vectors.dart.git
ref: some-identifer
See the aa_vectors.dart Github page to find release, tags and branches.
See Pub Dependencies - Github Packages for more details.
import 'package:aa_vectors/vectors.dart';
import 'package:aa_vectors/vector_lists.dart';
import 'package:aa_vectors/opengl.dart';
TODO
aa_vectors.dart was inspired by John McCutchan's / Google's vector_math.dart library.
Vector and vector list classes were drawn directly from vector_math.dart. However, the class APIs have been heavily reworked in an effort to adhere more closely to up-to-date Dart practices. (see Effective Dart), and also as an excercise in API design for the author. Method implementations (i.e., the hard parts) are largely unchanged from those found in vector_math.dart.
aa_vectors.dart features rotation and perspective classes instead of general matrices, quaternions etc. The required math implementations are again drawn from vector_math.dart.