Package mikera.transformz.impl

Examples of mikera.transformz.impl.ConstantTransform


    testCloneTransform(t);   
    testNormalTransform(t);   
  }
 
  @Test public void genericConstantTests() {
    doAffineTests(new ConstantTransform(2, Vector3.of(1,2,3)));
    doAffineTests(new ConstantTransform(3, Vector3.of(1,2,3)));
    doAffineTests(new ConstantTransform(7, Vector.of(1,2,3,4,5,6)));
    doAffineTests(new ConstantTransform(0, Vector.of()));
  }
View Full Code Here


  public static ATransform constantTransform(int inputDimensions, AVector v) {
    int dims=v.length();
    switch (dims) {
      case 3: return new ConstantTransform3(inputDimensions,v);
      case 4: return new ConstantTransform4(inputDimensions,v);
      default: return new ConstantTransform(inputDimensions,v);
    }
  }
View Full Code Here

TOP

Related Classes of mikera.transformz.impl.ConstantTransform

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.