Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.4.0-wip

- Deprecate `MatrixX.copyInto` - use `setFrom` instead.
- Remove the deprecated `SimplexNoise` class.

## 2.3.0
Expand Down
7 changes: 2 additions & 5 deletions lib/src/vector_math/matrix2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,9 @@ class Matrix2 {
Matrix2 clone() => Matrix2.copy(this);

/// Copy this into [arg].
@Deprecated('Use setFrom instead')
Matrix2 copyInto(Matrix2 arg) {
final argStorage = arg._m2storage;
argStorage[0] = _m2storage[0];
argStorage[1] = _m2storage[1];
argStorage[2] = _m2storage[2];
argStorage[3] = _m2storage[3];
arg.setFrom(this);
return arg;
}

Expand Down
12 changes: 2 additions & 10 deletions lib/src/vector_math/matrix3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,9 @@ class Matrix3 {
Matrix3 clone() => Matrix3.copy(this);

/// Copy this into [arg].
@Deprecated('Use setFrom instead')
Matrix3 copyInto(Matrix3 arg) {
final argStorage = arg._m3storage;
argStorage[0] = _m3storage[0];
argStorage[1] = _m3storage[1];
argStorage[2] = _m3storage[2];
argStorage[3] = _m3storage[3];
argStorage[4] = _m3storage[4];
argStorage[5] = _m3storage[5];
argStorage[6] = _m3storage[6];
argStorage[7] = _m3storage[7];
argStorage[8] = _m3storage[8];
arg.setFrom(this);
return arg;
}

Expand Down
21 changes: 3 additions & 18 deletions lib/src/vector_math/matrix4.dart
Original file line number Diff line number Diff line change
Expand Up @@ -649,24 +649,9 @@ class Matrix4 {
Matrix4 clone() => Matrix4.copy(this);

/// Copy into [arg].
@Deprecated('Use setFrom instead')
Matrix4 copyInto(Matrix4 arg) {
final argStorage = arg._m4storage;
argStorage[0] = _m4storage[0];
argStorage[1] = _m4storage[1];
argStorage[2] = _m4storage[2];
argStorage[3] = _m4storage[3];
argStorage[4] = _m4storage[4];
argStorage[5] = _m4storage[5];
argStorage[6] = _m4storage[6];
argStorage[7] = _m4storage[7];
argStorage[8] = _m4storage[8];
argStorage[9] = _m4storage[9];
argStorage[10] = _m4storage[10];
argStorage[11] = _m4storage[11];
argStorage[12] = _m4storage[12];
argStorage[13] = _m4storage[13];
argStorage[14] = _m4storage[14];
argStorage[15] = _m4storage[15];
arg.setFrom(this);
return arg;
}

Expand Down Expand Up @@ -1777,7 +1762,7 @@ class Matrix4 {
/// Computes the result of `arg x this` and stores the result in-place in
/// `this`.
///
/// This method does not alter the [Matrix4] in `arg`.
/// This method does not alter the [Matrix4] in [arg].
void leftMultiply(Matrix4 arg) {
final argStorage = arg._m4storage;
final m00 = argStorage[0];
Expand Down
7 changes: 2 additions & 5 deletions lib/src/vector_math_64/matrix2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,9 @@ class Matrix2 {
Matrix2 clone() => Matrix2.copy(this);

/// Copy this into [arg].
@Deprecated('Use setFrom instead')
Matrix2 copyInto(Matrix2 arg) {
final argStorage = arg._m2storage;
argStorage[0] = _m2storage[0];
argStorage[1] = _m2storage[1];
argStorage[2] = _m2storage[2];
argStorage[3] = _m2storage[3];
arg.setFrom(this);
return arg;
}

Expand Down
12 changes: 2 additions & 10 deletions lib/src/vector_math_64/matrix3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,9 @@ class Matrix3 {
Matrix3 clone() => Matrix3.copy(this);

/// Copy this into [arg].
@Deprecated('Use setFrom instead')
Matrix3 copyInto(Matrix3 arg) {
final argStorage = arg._m3storage;
argStorage[0] = _m3storage[0];
argStorage[1] = _m3storage[1];
argStorage[2] = _m3storage[2];
argStorage[3] = _m3storage[3];
argStorage[4] = _m3storage[4];
argStorage[5] = _m3storage[5];
argStorage[6] = _m3storage[6];
argStorage[7] = _m3storage[7];
argStorage[8] = _m3storage[8];
arg.setFrom(this);
return arg;
}

Expand Down
19 changes: 2 additions & 17 deletions lib/src/vector_math_64/matrix4.dart
Original file line number Diff line number Diff line change
Expand Up @@ -649,24 +649,9 @@ class Matrix4 {
Matrix4 clone() => Matrix4.copy(this);

/// Copy into [arg].
@Deprecated('Use setFrom instead')
Matrix4 copyInto(Matrix4 arg) {
final argStorage = arg._m4storage;
argStorage[0] = _m4storage[0];
argStorage[1] = _m4storage[1];
argStorage[2] = _m4storage[2];
argStorage[3] = _m4storage[3];
argStorage[4] = _m4storage[4];
argStorage[5] = _m4storage[5];
argStorage[6] = _m4storage[6];
argStorage[7] = _m4storage[7];
argStorage[8] = _m4storage[8];
argStorage[9] = _m4storage[9];
argStorage[10] = _m4storage[10];
argStorage[11] = _m4storage[11];
argStorage[12] = _m4storage[12];
argStorage[13] = _m4storage[13];
argStorage[14] = _m4storage[14];
argStorage[15] = _m4storage[15];
arg.setFrom(this);
return arg;
}

Expand Down
Loading