Skip to content

Commit 5d4917f

Browse files
authored
Update README.md to show how to use vector_math_64.
1 parent d99c903 commit 5d4917f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,19 @@ void main() {
151151
}
152152
```
153153

154+
8\. Use 64bit float precision (instead of 32bit)
155+
156+
```dart
157+
// Use different import statement.
158+
// Which is a drop-in replacement for 'package:vector_math/vector_math.dart'
159+
import 'package:vector_math/vector_math_64.dart';
160+
void main() {
161+
// Types work the same, but using 64 bit storage.
162+
Vector3 x = Vector3.zero();
163+
Matrix4 m = Matrix4.identity();
164+
}
165+
```
166+
154167
## Development
155168

156169
To run the unit tests:

0 commit comments

Comments
 (0)