mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
Merge main into byrdit/recent-imagery-dateline
Resolve the Recent Imagery conflicts on main's renderer ports: dateline slots drape up to two globe-port layers, the drag preview draws a box across ±180°.
This commit is contained in:
commit
5555aba82c
2619 files changed
+259411
-57489
No files matched your search
@@ -281,6 +281,11 @@ function mapBox(box, fn) {
|
||||
});
|
||||
}
|
||||
|
||||
/** Degrees box from a degrees rectangle (the camera port's `viewRectangle`). */
|
||||
export function boxFromDegrees(rectangle) {
|
||||
return mapBox(rectangle, (degrees) => degrees);
|
||||
}
|
||||
|
||||
/** Degrees box from a radians rectangle (Cesium `Rectangle` shape). */
|
||||
export function boxFromRectangle(rectangle) {
|
||||
return mapBox(rectangle, (radians) => (Number(radians) * 180) / Math.PI);
|
||||
|
||||
Reference in new issue
Block a user