Examples of computePositionFromPoint()


Examples of gov.nasa.worldwind.globes.EllipsoidalGlobe.computePositionFromPoint()

        Intersection inters[] = globe.intersect(ray, refPos.getElevation());

        if (inters != null)
        {
            // Intersection with globe. Move reference point to the intersection point.
            Position p = globe.computePositionFromPoint(inters[0].getIntersectionPoint());
            dragObject.moveTo(p);
        }
    }

   private void _setCursor_(int sideName)
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        if (vec == null || previousVec == null)
        {
            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        java.util.List<LatLon> boundary = new ArrayList<LatLon>();
  
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        {
            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        java.util.List<LatLon> boundary = new ArrayList<LatLon>();
  
        for (LatLon ll : ((Path) this._pol_).getPositions()) 
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        if (vec == null || previousVec == null)
        {
            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        java.util.List<LatLon> boundary = new ArrayList<LatLon>();
        for (LatLon ll : ((ExtrudedPolygon) super._pol_).getOuterBoundary())
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        {
            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        java.util.List<LatLon> boundary = new ArrayList<LatLon>();
        for (LatLon ll : ((ExtrudedPolygon) super._pol_).getOuterBoundary())
        {
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        if (vec == null || previousVec == null)
        {
            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        this._pol_.move(new Position(change.getLatitude(), change.getLongitude(), 0.0));
    }
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        {
            return;
        }

        Position pos = globe.computePositionFromPoint(vec);
        Position previousPos = globe.computePositionFromPoint(previousVec);
        LatLon change = pos.subtract(previousPos);

        this._pol_.move(new Position(change.getLatitude(), change.getLongitude(), 0.0));
    }
   
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        Vec4 secondPoint = globe.computePointFromPosition(secondVertex);

        // Find the midpoint of the line segment that connects the vertices
        Vec4 halfwayPoint = firstPoint.add3(secondPoint).divide3(2.0);

        Position halfwayPosition = globe.computePositionFromPoint(halfwayPoint);
       
        this._lstMarkerControlPoints.add(new GfrMrkMoveVert(halfwayPosition, halfwayPoint,
            this._bmaControlHeight, this._lstMarkerControlPoints.size()));
    }
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

        offset = offset.multiply3(sizeScale);
        offset = offset.transformBy3(transformToPosition);

        // Add the adjusted offset to the Cartesian point, and recompute the control point's offset geographic position.
        point = point.add3(offset);
        controlPointInfo.position = globe.computePositionFromPoint(point);

        if (dc.isPickingMode())
        {
            PickedObject po = this.bindPickableObject(dc, controlPointInfo.controlPoint,
                controlPointInfo.controlPoint.getKey());
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computePositionFromPoint()

            };

        LatLon[] locations = new LatLon[points.length];
        for (int i = 0; i < locations.length; i++)
        {
            locations[i] = new LatLon(globe.computePositionFromPoint(points[i]));
        }

        return Arrays.asList(locations);
    }
   
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.