Package ca.eandb.jmist.math

Examples of ca.eandb.jmist.math.AffineMatrix2


   * @param Tinv
   *            The inverse of the <code>LinearMatrix2</code> that is being
   *            applied.
   */
  private void applyInverseTransformation(LinearMatrix2 Tinv) {
    this.applyInverseTransformation(new AffineMatrix2(Tinv));
  }
View Full Code Here


   * <code>LinearMatrix2</code> to this <code>AffineTransformation2</code>.
   * @param T The <code>LinearMatrix2</code> representing the transformation
   *     to be applied.
   */
  protected final void applyTransformation(LinearMatrix2 T) {
    this.applyTransformation(new AffineMatrix2(T));
  }
View Full Code Here

    for (Point2 p : texCoords) {
      builder.add(p);
    }
    texBoundingBox = builder.getBoundingBox();

    AffineMatrix2 T = texBoundingBox.toMatrix().inverse();

    for (int fi = 0, nf = faces.size(); fi < nf; fi++) {
      Face f = faces.get(fi);
      if (f.texIndices != null) {
        for (int tri = 0; tri < f.decomp.length; tri += 3) {
          Point2 a = T.times(texCoords.get(f.texIndices[f.decomp[tri]]));
          Point2 b = T.times(texCoords.get(f.texIndices[f.decomp[tri + 1]]));
          Point2 c = T.times(texCoords.get(f.texIndices[f.decomp[tri + 2]]));

          builder.reset();
          builder.add(a);
          builder.add(b);
          builder.add(c);
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.math.AffineMatrix2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.