Package org.earth3d.jearth.math

Examples of org.earth3d.jearth.math.Point3D.divide()


      TextureTreeNodeCore texcore = (TextureTreeNodeCore) getCore(0);
      Point3D center = new Point3D();
      for(int i=0; i<4; i++) {
        center.add(texcore.getVertex(i));
      }
      center = center.divide(4);

      double radius=0, newradius;
      for(int i=0; i<4; i++) {
        newradius = texcore.getVertex(i).sub(center).length();
        if (newradius>radius) radius = newradius;
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.