Package org.osm2world.core.math

Examples of org.osm2world.core.math.VectorXZ.lengthSquared()


   
    VectorXYZ endDir = lastV.subtract(slastV).normalize();
    VectorXYZ headStart = lastV.subtract(endDir.mult(headLength));
   
    VectorXZ endDirXZ = endDir.xz();
    if (endDirXZ.lengthSquared() < 0.01) { //(almost) vertical vector
      endDirXZ = VectorXZ.X_UNIT;
    } else {
      endDirXZ = endDirXZ.normalize();
    }
    VectorXZ endNormalXZ = endDirXZ.rightNormal();
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.