-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
92 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'dart:io'; | ||
import 'package:cesium_3d_tiles/cesium_3d_tiles.dart'; | ||
|
||
/// | ||
/// This example shows how to use the low-level Cesium Native bindings | ||
/// to load a tileset from Cesium Ion, update the view, and list renderable tiles. | ||
/// | ||
void main(List<String> args) async { | ||
double lat, long, height; | ||
try { | ||
lat = double.parse(args[0]); | ||
long = double.parse(args[1]); | ||
height = double.parse(args[1]); | ||
} catch (err) { | ||
print( | ||
"Usage: dart --enable-experiment=native-assets get_cartesian_coordinates.dart <lat> <long> <height>"); | ||
exit(-1); | ||
} | ||
|
||
final position = | ||
Cesium3DTileset.cartographicToCartesian(lat, long, height: height); | ||
|
||
print("Cartesian Coordinates : $position"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters