diff options
author | Sven Gothel <[email protected]> | 2014-03-15 10:21:36 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-03-15 10:21:36 +0100 |
commit | 7e2512c8f63cee63ab2f74407fb94859fe20043a (patch) | |
tree | 9589bc7aabc5f69c9215d056edf1f929852e81c2 /src/jogl/classes/jogamp/graph/geom | |
parent | 0b61e9a2641e38475a330303e49f6becf99158e1 (diff) |
Quaternion: User EPSILON for all tests against zero and one (identity .. ) and document the same. ; Minor edits ..
Diffstat (limited to 'src/jogl/classes/jogamp/graph/geom')
-rw-r--r-- | src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java index fdf317f68..c6efae883 100644 --- a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java +++ b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java @@ -365,8 +365,9 @@ public class AffineTransform implements Cloneable { * </pre> * </p> * @param tR the right-argument of the matrix multiplication + * @return this transform for chaining */ - public final void concatenate(AffineTransform tR) { + public final AffineTransform concatenate(AffineTransform tR) { // setTransform(multiply(this, tR)); type = TYPE_UNKNOWN; setTransform( @@ -376,6 +377,7 @@ public class AffineTransform implements Cloneable { tR.m01 * m10 + tR.m11 * m11, // m11 tR.m02 * m00 + tR.m12 * m01 + m02, // m02 tR.m02 * m10 + tR.m12 * m11 + m12);// m12 + return this; } /** @@ -387,8 +389,9 @@ public class AffineTransform implements Cloneable { * </pre> * </p> * @param tL the left-argument of the matrix multiplication + * @return this transform for chaining */ - public final void preConcatenate(AffineTransform tL) { + public final AffineTransform preConcatenate(AffineTransform tL) { // setTransform(multiply(tL, this)); type = TYPE_UNKNOWN; setTransform( @@ -398,6 +401,7 @@ public class AffineTransform implements Cloneable { m01 * tL.m10 + m11 * tL.m11, // m11 m02 * tL.m00 + m12 * tL.m01 + tL.m02, // m02 m02 * tL.m10 + m12 * tL.m11 + tL.m12);// m12 + return this; } public final AffineTransform createInverse() throws NoninvertibleTransformException { |