Package mikera.vectorz

Examples of mikera.vectorz.AVector.normalise()


  private void testNormalTransform(AAffineTransform t) {
    if (!t.isSquare()) return;
    int dimensions=t.inputDimensions();
    AVector d=Vectorz.newVector(dimensions);
    Vectorz.fillGaussian(d);
    d.normalise();
   
    AVector r=Vectorz.newVector(dimensions);
   
    t.transformNormal(d, r);
    assertTrue(r.isZero()||r.isUnitLengthVector());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.