Package org.earth3d.jearth.math

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


    quat.createMatrix(matrix);
   
    Matrix mMatrix = new Matrix(matrix);
    Point3D strafedirection = mMatrix.multvector(direction);

    viewer = viewer.add(strafedirection.multiply(factor).multiply(viewer.length()-1));
  }

  void forwardOnSurface(float factor) {
    double viewerdistance = viewer.length();
View Full Code Here


      }
      if (virtualviewer.equals(new Point3D(0,0,0))) { // square root cannot be solved, earth not visible in center
//        distance = getDistance(&(viewer->normalize()*(1+distsurface/CENTERWEIGHT)), ((HeightfieldTreeNodeCore *)(currentNode->getCore(1)))->getRect());
//        edgeSize = getMaxEdgeSize(viewer, ((TextureTreeNodeCore *)(currentNode->getCore(0)))->vertex, distance);
      } else {
        virtualviewer = virtualviewer.multiply(1+distsurface/Global.CENTERWEIGHT);
      }
    } else {
      virtualviewer = viewer;

      // Calculate distance between viewer and tile
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.