Skip to content

Commit 2fd7aab

Browse files
committed
Move loads uppp
1 parent cdb4a00 commit 2fd7aab

File tree

2 files changed

+38
-18
lines changed

2 files changed

+38
-18
lines changed

lib/src/vector_math/matrix4.dart

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -694,21 +694,24 @@ class Matrix4 {
694694
_m4storage[4] * ty +
695695
_m4storage[8] * tz +
696696
_m4storage[12];
697+
_m4storage[12] = t1;
698+
697699
final t2 = _m4storage[1] * tx +
698700
_m4storage[5] * ty +
699701
_m4storage[9] * tz +
700702
_m4storage[13];
703+
_m4storage[13] = t2;
704+
701705
final t3 = _m4storage[2] * tx +
702706
_m4storage[6] * ty +
703707
_m4storage[10] * tz +
704708
_m4storage[14];
709+
_m4storage[14] = t3;
710+
705711
final t4 = _m4storage[3] * tx +
706712
_m4storage[7] * ty +
707713
_m4storage[11] * tz +
708714
_m4storage[15];
709-
_m4storage[12] = t1;
710-
_m4storage[13] = t2;
711-
_m4storage[14] = t3;
712715
_m4storage[15] = t4;
713716
}
714717

@@ -721,21 +724,24 @@ class Matrix4 {
721724
_m4storage[4] * ty +
722725
_m4storage[8] * tz +
723726
_m4storage[12];
727+
_m4storage[12] = t1;
728+
724729
final t2 = _m4storage[1] * tx +
725730
_m4storage[5] * ty +
726731
_m4storage[9] * tz +
727732
_m4storage[13];
733+
_m4storage[13] = t2;
734+
728735
final t3 = _m4storage[2] * tx +
729736
_m4storage[6] * ty +
730737
_m4storage[10] * tz +
731738
_m4storage[14];
739+
_m4storage[14] = t3;
740+
732741
final t4 = _m4storage[3] * tx +
733742
_m4storage[7] * ty +
734743
_m4storage[11] * tz +
735744
_m4storage[15];
736-
_m4storage[12] = t1;
737-
_m4storage[13] = t2;
738-
_m4storage[14] = t3;
739745
_m4storage[15] = t4;
740746
}
741747

@@ -745,25 +751,29 @@ class Matrix4 {
745751
final ty = v4.y;
746752
final tz = v4.z;
747753
final tw = v4.w;
754+
748755
final t1 = _m4storage[0] * tx +
749756
_m4storage[4] * ty +
750757
_m4storage[8] * tz +
751758
_m4storage[12] * tw;
759+
_m4storage[12] = t1;
760+
752761
final t2 = _m4storage[1] * tx +
753762
_m4storage[5] * ty +
754763
_m4storage[9] * tz +
755764
_m4storage[13] * tw;
765+
_m4storage[13] = t2;
766+
756767
final t3 = _m4storage[2] * tx +
757768
_m4storage[6] * ty +
758769
_m4storage[10] * tz +
759770
_m4storage[14] * tw;
771+
_m4storage[14] = t3;
772+
760773
final t4 = _m4storage[3] * tx +
761774
_m4storage[7] * ty +
762775
_m4storage[11] * tz +
763776
_m4storage[15] * tw;
764-
_m4storage[12] = t1;
765-
_m4storage[13] = t2;
766-
_m4storage[14] = t3;
767777
_m4storage[15] = t4;
768778
}
769779

lib/src/vector_math_64/matrix4.dart

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -694,21 +694,24 @@ class Matrix4 {
694694
_m4storage[4] * ty +
695695
_m4storage[8] * tz +
696696
_m4storage[12];
697+
_m4storage[12] = t1;
698+
697699
final t2 = _m4storage[1] * tx +
698700
_m4storage[5] * ty +
699701
_m4storage[9] * tz +
700702
_m4storage[13];
703+
_m4storage[13] = t2;
704+
701705
final t3 = _m4storage[2] * tx +
702706
_m4storage[6] * ty +
703707
_m4storage[10] * tz +
704708
_m4storage[14];
709+
_m4storage[14] = t3;
710+
705711
final t4 = _m4storage[3] * tx +
706712
_m4storage[7] * ty +
707713
_m4storage[11] * tz +
708714
_m4storage[15];
709-
_m4storage[12] = t1;
710-
_m4storage[13] = t2;
711-
_m4storage[14] = t3;
712715
_m4storage[15] = t4;
713716
}
714717

@@ -721,21 +724,24 @@ class Matrix4 {
721724
_m4storage[4] * ty +
722725
_m4storage[8] * tz +
723726
_m4storage[12];
727+
_m4storage[12] = t1;
728+
724729
final t2 = _m4storage[1] * tx +
725730
_m4storage[5] * ty +
726731
_m4storage[9] * tz +
727732
_m4storage[13];
733+
_m4storage[13] = t2;
734+
728735
final t3 = _m4storage[2] * tx +
729736
_m4storage[6] * ty +
730737
_m4storage[10] * tz +
731738
_m4storage[14];
739+
_m4storage[14] = t3;
740+
732741
final t4 = _m4storage[3] * tx +
733742
_m4storage[7] * ty +
734743
_m4storage[11] * tz +
735744
_m4storage[15];
736-
_m4storage[12] = t1;
737-
_m4storage[13] = t2;
738-
_m4storage[14] = t3;
739745
_m4storage[15] = t4;
740746
}
741747

@@ -745,25 +751,29 @@ class Matrix4 {
745751
final ty = v4.y;
746752
final tz = v4.z;
747753
final tw = v4.w;
754+
748755
final t1 = _m4storage[0] * tx +
749756
_m4storage[4] * ty +
750757
_m4storage[8] * tz +
751758
_m4storage[12] * tw;
759+
_m4storage[12] = t1;
760+
752761
final t2 = _m4storage[1] * tx +
753762
_m4storage[5] * ty +
754763
_m4storage[9] * tz +
755764
_m4storage[13] * tw;
765+
_m4storage[13] = t2;
766+
756767
final t3 = _m4storage[2] * tx +
757768
_m4storage[6] * ty +
758769
_m4storage[10] * tz +
759770
_m4storage[14] * tw;
771+
_m4storage[14] = t3;
772+
760773
final t4 = _m4storage[3] * tx +
761774
_m4storage[7] * ty +
762775
_m4storage[11] * tz +
763776
_m4storage[15] * tw;
764-
_m4storage[12] = t1;
765-
_m4storage[13] = t2;
766-
_m4storage[14] = t3;
767777
_m4storage[15] = t4;
768778
}
769779

0 commit comments

Comments
 (0)