Remove prefer-inline for non-trivial Matrix functions (#347)
* Prepare release
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 398ef8f..d85213d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-## 2.2.0-wip
+## 2.2.0
- Performance of functions that take `dynamic` arguments improved.
- Most of the members that take `dynamic` arguments are deprecated. New members
diff --git a/lib/src/vector_math/matrix4.dart b/lib/src/vector_math/matrix4.dart
index 8c82523..123ca94 100644
--- a/lib/src/vector_math/matrix4.dart
+++ b/lib/src/vector_math/matrix4.dart
@@ -691,9 +691,6 @@
}
/// Translate this matrix by x, y, z, w.
- @pragma('wasm:prefer-inline')
- @pragma('vm:prefer-inline')
- @pragma('dart2js:prefer-inline')
void translateByDouble(double tx, double ty, double tz, double tw) {
final t1 = _m4storage[0] * tx +
_m4storage[4] * ty +
@@ -760,9 +757,6 @@
}
/// Multiply this by a translation from the left.
- @pragma('wasm:prefer-inline')
- @pragma('vm:prefer-inline')
- @pragma('dart2js:prefer-inline')
void leftTranslateByDouble(double tx, double ty, double tz, double tw) {
// Column 1
final r1 = _m4storage[3];
@@ -941,9 +935,6 @@
}
/// Scale this matrix.
- @pragma('wasm:prefer-inline')
- @pragma('vm:prefer-inline')
- @pragma('dart2js:prefer-inline')
void scaleByDouble(double sx, double sy, double sz, double sw) {
_m4storage[0] *= sx;
_m4storage[1] *= sx;
diff --git a/lib/src/vector_math_64/matrix4.dart b/lib/src/vector_math_64/matrix4.dart
index f1ed9f0..c5e8981 100644
--- a/lib/src/vector_math_64/matrix4.dart
+++ b/lib/src/vector_math_64/matrix4.dart
@@ -691,9 +691,6 @@
}
/// Translate this matrix by x, y, z, w.
- @pragma('wasm:prefer-inline')
- @pragma('vm:prefer-inline')
- @pragma('dart2js:prefer-inline')
void translateByDouble(double tx, double ty, double tz, double tw) {
final t1 = _m4storage[0] * tx +
_m4storage[4] * ty +
@@ -760,9 +757,6 @@
}
/// Multiply this by a translation from the left.
- @pragma('wasm:prefer-inline')
- @pragma('vm:prefer-inline')
- @pragma('dart2js:prefer-inline')
void leftTranslateByDouble(double tx, double ty, double tz, double tw) {
// Column 1
final r1 = _m4storage[3];
@@ -941,9 +935,6 @@
}
/// Scale this matrix.
- @pragma('wasm:prefer-inline')
- @pragma('vm:prefer-inline')
- @pragma('dart2js:prefer-inline')
void scaleByDouble(double sx, double sy, double sz, double sw) {
_m4storage[0] *= sx;
_m4storage[1] *= sx;
diff --git a/lib/src/vector_math_64/quad.dart b/lib/src/vector_math_64/quad.dart
index 04eb625..94c4ab1 100644
--- a/lib/src/vector_math_64/quad.dart
+++ b/lib/src/vector_math_64/quad.dart
@@ -20,7 +20,7 @@
/// The third point of the quad.
Vector3 get point2 => _point2;
- /// The third point of the quad.
+ /// The fourth point of the quad.
Vector3 get point3 => _point3;
/// Create a new, uninitialized quad.
diff --git a/pubspec.yaml b/pubspec.yaml
index 162d06c..22b2ebd 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: vector_math
-version: 2.2.0-wip
+version: 2.2.0
description: A Vector Math library for 2D and 3D applications.
repository: https://github.com/google/vector_math.dart