--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jay,
No, the repo is in the same place, but the code has been merged to master and the phil-ui branch has been deleted. If it's not obvious how to update the URLs, let me know and I'll send them through next time I'm on a real computer.
Kevin
Right, National Map just hides the scale widget when the bottom center two pixels don't hit anything. It's good enough for our purposes.
--
var leftCartographic = globe.ellipsoid.cartesianToCartographic(leftPosition);var rightCartographic = globe.ellipsoid.cartesianToCartographic(rightPosition);
geodesic.setEndPoints(leftCartographic, rightCartographic);var pixelDistance = geodesic.surfaceDistance;
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
function unSwizzle(cart)
{
var temp=cart.z;
cart.z=cart.x; //X to Z
cart.x=cart.y; //Y to X
cart.y=temp; //Z to Y
}
ray.origin=unSwizzle(ray.origin);
ray.direction=unSwizzle(ray.direction);
//get point on ground in Cartesian (unswizzled)
var CC3=Cesium.Cartesian3;
var steps=camera.position.z/(-myRay.direction.z);
var vec=new CC3();desCarte=new CC3();
CC3.multiplyByScalar(myRay.direction,steps,vec);
CC3.add(myRay.position,vec,desCarte);
//Cartesian to Cartographic (for Columbus and 2D unswizzled)
function yToLat(y)
{
var neg=1;if(y<0){neg=-1;}y=Math.abs(y);
var halfheight = Math.PI * 6378137 / 2; //width/2/2;
var ratio = y / halfheight;
return ratio * (Math.PI/2) * neg;
}
desCarto = new Cesium.Cartographic();
desCarto.longitude=desCarte.x / 6378137;
desCarto.latitude=yToLat(desCarte.y);
desCarto.height=desCarte.z;
var leftCartographic = globe.ellipsoid.cartesianToCartographic(leftPosition);
var rightCartographic = globe.ellipsoid.cartesianToCartographic(rightPosition);
geodesic.setEndPoints(leftCartographic, rightCartographic);
var pixelDistance = geodesic.surfaceDistance;
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var left = scene.camera.getPickRay(new Cartesian2((width / 2) | 0, height - 1));
var right = scene.camera.getPickRay(new Cartesian2(1 + (width / 2) | 0, height - 1));
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.