# vector_math

> Vector and matrix maths for 2D and 3D Dart applications

Source: https://talira.ai/catalog/vector-math-5ewrx6w5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / linear algebra](https://talira.ai/categories/libraries/math/linear-algebra), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

vector_math is the Flutter team's Dart library of vector and matrix maths for 2D and 3D applications. It has 2D, 3D and 4D vector and matrix types, a quaternion type for animating rotations, collision detection with axis-aligned bounding boxes, rays and spheres, and color and rendering utilities, with GLSL-style swizzling getters and setters such as position.xwz = color.grb. [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md) and the [Flame](https://talira.ai/catalog/flame-1y23mvp0.md) game engine use it.

## Links

- GitHub: https://github.com/flutter/core-packages

## Problems it solves

- do 3D vector and matrix maths in Dart
- rotate and transform points with matrices in a Flutter app
- detect collisions between boxes, rays and spheres in a Dart game

## Features

- 2D, 3D and 4D vector and matrix types
- quaternions for rotations
- collision detection with AABBs, rays and spheres
- color and rendering utilities
- GLSL-style swizzling getters and setters

## Limitations

- Requires Dart SDK 3.12 or newer[^1]

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.67, adoption 0.25, momentum 0.14, community 0.82, backing 0.55, extensibility 0.00.

- last commit 11 days ago
- 11 commits in the last 90 days
- 16 GitHub stars
- 113 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Related

- Works with [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md)
- Works with [Flame](https://talira.ai/catalog/flame-1y23mvp0.md)

## Sources

[^1]: https://github.com/flutter/core-packages/blob/main/packages/vector_math/pubspec.yaml (checked 27 Nov 2026)
[^2]: https://github.com/flutter/core-packages/blob/main/packages/vector_math/LICENSE (checked 27 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
