JSAABBox3D
지도 내 박스(육면체) 형태의 공강 위치를 사용하기 위한 API 입니다.
let min = new Module.JSVector3D(129.14, 35.18, 100.0);
let max = new Module.JSVector3D(129.18, 35.189, 200.0);
let boxDefault = new Module.JSAABBox3D(); // Both min and max are JSVector3D(0.0, 0.0, 0.0)
let boxWithMinMax = new Module.JSAABBox3D(min, max);properties
Name
Type
Description
getBox() → JSVec3Array
var box = polygon.getBoundary();
// AABB Coordinates to Spherical Coordinates
// bottom(4), top(4)
var boxArray = box.getBox();
const corners = {
bottom: [
[boxArray.get(0).longitude, boxArray.get(0).latitude, boxArray.get(0).altitude],
[boxArray.get(1).longitude, boxArray.get(1).latitude, boxArray.get(1).altitude],
[boxArray.get(2).longitude, boxArray.get(2).latitude, boxArray.get(2).altitude],
[boxArray.get(3).longitude, boxArray.get(3).latitude, boxArray.get(3).altitude],
],
top: [
[boxArray.get(4).longitude, boxArray.get(4).latitude, boxArray.get(4).altitude],
[boxArray.get(5).longitude, boxArray.get(5).latitude, boxArray.get(5).altitude],
[boxArray.get(6).longitude, boxArray.get(6).latitude, boxArray.get(6).altitude],
[boxArray.get(7).longitude, boxArray.get(7).latitude, boxArray.get(7).altitude],
]
};Last updated