MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / radiansToPoint

Function radiansToPoint

CesiumVectorData/src/VectorRasterizer.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace CesiumVectorData {
36namespace {
37BLPoint radiansToPoint(
38 double longitude,
39 double latitude,
40 const GlobeRectangle& rect,
41 const BLContext& context) {
42 const glm::dvec2 point =
43 rect.computeNormalizedCoordinates(Cartographic(longitude, latitude));
44 return BLPoint(
45 point.x * context.targetWidth(),
46 (1.0 - point.y) * context.targetHeight());
47}
48
49void setStrokeWidth(
50 BLContext& context,

Callers 3

drawPolygonMethod · 0.85
drawPolylineMethod · 0.85
drawPointsMethod · 0.85

Calls 2

CartographicClass · 0.50

Tested by

no test coverage detected