Skip to content

Commit 037c649

Browse files
committed
M4 adds .add(T3)
1 parent d957d19 commit 037c649

File tree

1 file changed

+11
-0
lines changed
  • sources/net.sf.j2s.java.core/src/javajs/util

1 file changed

+11
-0
lines changed

sources/net.sf.j2s.java.core/src/javajs/util/M4.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,17 @@ public void sub(M4 m1) {
570570
m32 -= m1.m32;
571571
m33 -= m1.m33;
572572
}
573+
574+
/**
575+
* add to translation
576+
*
577+
* @param pt
578+
*/
579+
public void add(T3 pt) {
580+
m03 += pt.x;
581+
m13 += pt.y;
582+
m23 += pt.z;
583+
}
573584

574585
/**
575586
* Sets the value of this matrix to its transpose.

0 commit comments

Comments
 (0)