Package org.osm2world.core.math

Examples of org.osm2world.core.math.VectorXYZ.normalize()


    VectorXYZ normal = new VectorXYZ(0, 0, 0);
    for (VectorXYZ addNormal : relevantNormals) {
      normal = normal.add(addNormal);
    }

    return normal.normalize();

  }

  private static Map<VectorXYZ, List<TriangleXYZ>> calculateAdjacentTriangles(
      Collection<TriangleXYZ> triangles) {
View Full Code Here


   
    for (int pathI = 1; pathI < extrusionPath.size()-1; pathI ++) {
           
      VectorXYZ forwardVector =
        extrusionPath.get(pathI+1).subtract(extrusionPath.get(pathI-1));
      forwardVector = forwardVector.normalize();
     
      shapeVectors[pathI] = transformShape(shape,
          extrusionPath.get(pathI),
          forwardVector,
          upVectors.get(pathI));
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.