From 5d4917f8f9b52eee7f8ad8a81193f447787f9c3d Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Sun, 28 Jan 2024 11:15:27 -0800 Subject: [PATCH] Update README.md to show how to use vector_math_64. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2b0124f6..18ff78d2 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,19 @@ void main() { } ``` +8\. Use 64bit float precision (instead of 32bit) + +```dart +// Use different import statement. +// Which is a drop-in replacement for 'package:vector_math/vector_math.dart' +import 'package:vector_math/vector_math_64.dart'; +void main() { + // Types work the same, but using 64 bit storage. + Vector3 x = Vector3.zero(); + Matrix4 m = Matrix4.identity(); +} +``` + ## Development To run the unit tests: