Skip to content

Commit

Permalink
converted sensors example to use fromDegrees
Browse files Browse the repository at this point in the history
  • Loading branch information
gbeatty committed May 21, 2014
1 parent ce12e37 commit e9b219e
Showing 1 changed file with 3 additions and 3 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

0 comments on commit e9b219e

Please sign in to comment.