Skip to content

Commit

Permalink
Merge pull request #129 from AnalyticalGraphicsInc/fromDegrees
Browse files Browse the repository at this point in the history
updated STK Cesium examples to use fromDegrees
  • Loading branch information
pjcozzi committed May 21, 2014
2 parents 1e5fb23 + e9b219e commit 07e10c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Apps/Sandcastle/gallery/Sensors.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
{
"use strict";

var longitude = Cesium.Math.toRadians(-90.0);
var latitude = Cesium.Math.toRadians(30.0);
var longitude = -90.0;
var latitude = 30.0;
var altitude = 3500000.0;
var clock = 0.0;
var cone = Cesium.Math.toRadians(15.0);
Expand All @@ -101,7 +101,7 @@

function getModelMatrix(ellipsoid)
{
var location = ellipsoid.cartographicToCartesian(new Cesium.Cartographic(longitude, latitude, altitude));
var location = Cesium.Cartesian3.fromDegrees(longitude, latitude, altitude);
var modelMatrix = Cesium.Transforms.northEastDownToFixedFrame(location);
var orientation = Cesium.Matrix3.multiply(
Cesium.Matrix3.multiply(Cesium.Matrix3.fromRotationZ(clock), Cesium.Matrix3.fromRotationY(cone)),
Expand Down
2 changes: 1 addition & 1 deletion Apps/Sandcastle/gallery/Vectors.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
clock.multiplier = 3 * 60 * 60;

// Two vector primitives: one points to the sun; the other to the moon.
var position = globe.ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(-75.59777, 40.03883));
var position = Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883);
var primitives = viewer.scene.primitives;
var sunVector = primitives.add(new Cesium.Vector({
position : position,
Expand Down

0 comments on commit 07e10c6

Please sign in to comment.