BIGEMAP卫星地图_高清卫星地图_北斗高清地图_地图软件_矢量地图数据_专题地图

BoundingSphere

具有中心和半徑的邊界球體。
new BoundingSphere(center, radius)
Parameters:
center (Cartesian3) (default Cartesian3.ZERO) 邊界球的中心。
radius (Number) (default 0.0) 邊界球的半徑。
See:

Members

(static) packedLength : Number

用于將對象打包到數(shù)組中的元素?cái)?shù)。

center : Cartesian3

球體的中心點(diǎn)。
Default Value: Cartesian3.ZERO

radius : Number

球體的半徑。
Default Value: 0.0

Methods

(static) clone(sphere, result) → {BoundingSphere}
復(fù)制邊界球體實(shí)例。
Parameters:
sphere (BoundingSphere) 要復(fù)制的邊界球體。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) computePlaneDistances(sphere, position, direction, result) → {Interval}
由矢量從邊界球的中心到投射到方向上的位置的距離加/減邊界球的半徑。
如果您設(shè)想具有法向的無限多個(gè)平面,這將從與邊界球體相交的位置計(jì)算到最近和最遠(yuǎn)平面的最小距離。
Parameters:
sphere (BoundingSphere) 要計(jì)算距離的邊界球體。
position (Cartesian3) 計(jì)算距離的位置。
direction (Cartesian3) 從位置開始的方向。
result (Interval) 存儲最近和最遠(yuǎn)距離的間隔。
(static) distanceSquaredTo(sphere, cartesian) → {Number}
計(jì)算從邊界球上最近點(diǎn)到點(diǎn)的估計(jì)距離平方。
Parameters:
sphere (BoundingSphere) 球體。
cartesian (Cartesian3) 重點(diǎn)
Example
// Sort bounding spheres from back to front
spheres.sort(function(a, b) {
    return bmgl.BoundingSphere.distanceSquaredTo(b, camera.positionWC) - bmgl.BoundingSphere.distanceSquaredTo(a, camera.positionWC);
});
(static) equals(left, right) → {Boolean}
比較提供的boundingsphere組件,如果它們相等,則返回true,否則返回false。
Parameters:
left (BoundingSphere) 第一個(gè)邊界球。
right (BoundingSphere) 第二個(gè)邊界球。
(static) expand(sphere, point, result) → {BoundingSphere}
通過擴(kuò)大提供的球體以包含提供的點(diǎn)來計(jì)算邊界球體。
Parameters:
sphere (BoundingSphere) 要展開的球體。
point (Cartesian3) 包圍在邊界球內(nèi)的點(diǎn)。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) fromBoundingSpheres(boundingSpheres, result) → {BoundingSphere}
計(jì)算包圍提供的邊界球數(shù)組的緊配合邊界球。
Parameters:
boundingSpheres (Array.<BoundingSphere>) 邊界球的數(shù)組。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) fromCornerPoints(corner, oppositeCorner, result) → {BoundingSphere}
從軸對齊邊界框的角點(diǎn)計(jì)算邊界球。球體猛然完全地與盒子相碰撞。
Parameters:
corner (Cartesian3) 矩形上方的最小高度。
oppositeCorner (Cartesian3) 矩形上的最大高度。
result (BoundingSphere) 存儲結(jié)果的對象。
Example
// Create a bounding sphere around the unit cube
var sphere = bmgl.BoundingSphere.fromCornerPoints(new bmgl.Cartesian3(-0.5, -0.5, -0.5), new bmgl.Cartesian3(0.5, 0.5, 0.5));
(static) fromEllipsoid(ellipsoid, result) → {BoundingSphere}
創(chuàng)建包含橢圓體的邊界球體。
Parameters:
ellipsoid (Ellipsoid) 在其周圍創(chuàng)建邊界球的橢球體。
result (BoundingSphere) 存儲結(jié)果的對象。
Example
var boundingSphere = bmgl.BoundingSphere.fromEllipsoid(ellipsoid);
(static) fromEncodedCartesianVertices(positionsHigh, positionsLow, result) → {BoundingSphere}
計(jì)算一個(gè)緊配合的邊界球,包含一個(gè)編碼部件3列表,其中點(diǎn)按X、Y、Z順序存儲在平行平面陣列中。邊界球是通過運(yùn)行兩種算法來計(jì)算的,一種是簡單算法,另一種是Ritter算法。兩個(gè)球體中較小的一個(gè)用于確保緊密配合。
Parameters:
positionsHigh (Array.<Number>) 包圍球?qū)鼑木幋a笛卡爾體的高位數(shù)組。每個(gè)點(diǎn)由數(shù)組中的三個(gè)元素按x、y、z的順序組成。
positionsLow (Array.<Number>) 包圍球?qū)鼑木幋a笛卡爾的低位數(shù)組。每個(gè)點(diǎn)由數(shù)組中的三個(gè)元素按x、y、z的順序組成。
result (BoundingSphere) 存儲結(jié)果的對象。
See:
(static) fromOrientedBoundingBox(orientedBoundingBox, result) → {BoundingSphere}
計(jì)算包圍提供的定向邊界框的緊配合邊界球。
Parameters:
orientedBoundingBox (OrientedBoundingBox) 定向邊界框。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) fromPoints(positions, result) → {BoundingSphere}
計(jì)算包含三維笛卡爾點(diǎn)列表的緊配合邊界球。邊界球是通過運(yùn)行兩種算法來計(jì)算的,一種是簡單算法,另一種是Ritter算法。兩個(gè)球體中較小的一個(gè)用于確保緊密配合。
Parameters:
positions (Array.<Cartesian3>) 邊界球?qū)鼑狞c(diǎn)數(shù)組。每個(gè)點(diǎn)必須具有xyz屬性。
result (BoundingSphere) 存儲結(jié)果的對象。
See:
(static) fromRectangle2D(rectangle, projection, result) → {BoundingSphere}
從二維投影的矩形計(jì)算邊界球體。
Parameters:
rectangle (Rectangle) 要圍繞其創(chuàng)建邊界球體的矩形。
projection (Object) (default GeographicProjection) 用于將矩形投影到二維的投影。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) fromRectangle3D(rectangle, ellipsoid, surfaceHeight, result) → {BoundingSphere}
從三維矩形中計(jì)算邊界球。邊界球是使用橢圓體上點(diǎn)的子樣本創(chuàng)建的,并包含在矩形中。對于所有類型的橢球體上的所有矩形,它可能不準(zhǔn)確。
Parameters:
rectangle (Rectangle) 用于創(chuàng)建邊界球體的有效矩形。
ellipsoid (Ellipsoid) (default Ellipsoid.WGS84) 用于確定矩形位置的橢圓體。
surfaceHeight (Number) (default 0.0) 橢圓體表面以上的高度。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) fromRectangleWithHeights2D(rectangle, projection, minimumHeight, maximumHeight, result) → {BoundingSphere}
從二維投影的矩形計(jì)算邊界球體。邊界球體占對象在矩形上的最小和最大高度。
Parameters:
rectangle (Rectangle) 要圍繞其創(chuàng)建邊界球體的矩形。
projection (Object) (default GeographicProjection) 用于將矩形投影到二維的投影。
minimumHeight (Number) (default 0.0) 矩形上方的最小高度。
maximumHeight (Number) (default 0.0) 矩形上的最大高度。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) fromVertices(positions, center, stride, result) → {BoundingSphere}
計(jì)算包含三維點(diǎn)列表的緊配合邊界球體,其中點(diǎn)按X、Y、Z順序存儲在平面陣列中。邊界球是通過運(yùn)行兩種算法來計(jì)算的,一種是簡單算法,另一種是Ritter算法。兩個(gè)球體中較小的一個(gè)用于確保緊密配合。
Parameters:
positions (Array.<Number>) 邊界球?qū)鼑狞c(diǎn)數(shù)組。每個(gè)點(diǎn)由數(shù)組中的三個(gè)元素按x、y、z的順序組成。
center (Cartesian3) (default Cartesian3.ZERO) 位置相對的位置,不必是坐標(biāo)系的原點(diǎn)。當(dāng)位置將用于相對于中心(rtc)渲染時(shí),此功能非常有用。
stride (Number) (default 3) 每個(gè)頂點(diǎn)的數(shù)組元素?cái)?shù)。它必須至少是3,但可能更高。不管這個(gè)參數(shù)的值是多少,第一個(gè)位置的x坐標(biāo)是在數(shù)組索引0處,y坐標(biāo)是在數(shù)組索引1處,z坐標(biāo)是在數(shù)組索引2處。當(dāng)跨距為3時(shí),下一個(gè)位置的X坐標(biāo)從數(shù)組索引3開始。但是,如果步幅為5,則跳過兩個(gè)數(shù)組元素,下一個(gè)位置從數(shù)組索引5開始。
result (BoundingSphere) 存儲結(jié)果的對象。
Example
// Compute the bounding sphere from 3 positions, each specified relative to a center.
// In addition to the X, Y, and Z coordinates, the points array contains two additional
// elements per point which are ignored for the purpose of computing the bounding sphere.
var center = new bmgl.Cartesian3(1.0, 2.0, 3.0);
var points = [1.0, 2.0, 3.0, 0.1, 0.2,
              4.0, 5.0, 6.0, 0.1, 0.2,
              7.0, 8.0, 9.0, 0.1, 0.2];
var sphere = bmgl.BoundingSphere.fromVertices(points, center, 5);
See:
(static) intersectPlane(sphere, plane) → {Intersect}
確定球體位于平面的哪一側(cè)。
Parameters:
sphere (BoundingSphere) 要測試的邊界球。
plane (Plane) 試飛的飛機(jī)。
(static) isOccluded(sphere, occluder) → {Boolean}
確定遮擋器是否將球體隱藏在視圖中。
Parameters:
sphere (BoundingSphere) 圍繞被遮擋對象的邊界球體。
occluder (Occluder) 封堵器。
(static) pack(value, array, startingIndex) → {Array.<Number>}
將提供的實(shí)例存儲到提供的數(shù)組中。
Parameters:
value (BoundingSphere) 要打包的值。
array (Array.<Number>) 要打包的數(shù)組。
startingIndex (Number) (default 0) 數(shù)組中開始打包元素的索引。
(static) projectTo2D(sphere, projection, result) → {BoundingSphere}
從三維世界坐標(biāo)中的邊界球創(chuàng)建二維邊界球。
Parameters:
sphere (BoundingSphere) 要轉(zhuǎn)換為二維的邊界球體。
projection (Object) (default GeographicProjection) 投影到二維。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) transform(sphere, transform, result) → {BoundingSphere}
將4x4仿射變換矩陣應(yīng)用于邊界球。
Parameters:
sphere (BoundingSphere) 要應(yīng)用轉(zhuǎn)換的邊界球。
transform (Matrix4) 要應(yīng)用于邊界球的變換矩陣。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) transformWithoutScale(sphere, transform, result) → {BoundingSphere}
將4x4仿射變換矩陣應(yīng)用于沒有比例的邊界球。未驗(yàn)證變換矩陣是否具有1的均勻比例。此方法比使用BoundingSphere.transform計(jì)算一般邊界球變換更快。
Parameters:
sphere (BoundingSphere) 要應(yīng)用轉(zhuǎn)換的邊界球。
transform (Matrix4) 要應(yīng)用于邊界球的變換矩陣。
result (BoundingSphere) 存儲結(jié)果的對象。
Example
var modelMatrix = bmgl.Transforms.eastNorthUpToFixedFrame(positionOnEllipsoid);
var boundingSphere = new bmgl.BoundingSphere();
var newBoundingSphere = bmgl.BoundingSphere.transformWithoutScale(boundingSphere, modelMatrix);
(static) union(left, right, result) → {BoundingSphere}
計(jì)算包含左右邊界球的邊界球。
Parameters:
left (BoundingSphere) 包圍在邊界球內(nèi)的球。
right (BoundingSphere) 包圍在邊界球內(nèi)的球。
result (BoundingSphere) 存儲結(jié)果的對象。
(static) unpack(array, startingIndex, result) → {BoundingSphere}
從壓縮數(shù)組中檢索實(shí)例。
Parameters:
array (Array.<Number>) 壓縮數(shù)組。
startingIndex (Number) (default 0) 要解包的元素的起始索引。
result (BoundingSphere) 存儲結(jié)果的對象。
clone(result) → {BoundingSphere}
復(fù)制此邊界球體實(shí)例。
Parameters:
result (BoundingSphere) 存儲結(jié)果的對象。
computePlaneDistances(position, direction, result) → {Interval}
由矢量從邊界球的中心到投射到方向上的位置的距離加/減邊界球的半徑。
如果您設(shè)想具有法向的無限多個(gè)平面,這將從與邊界球體相交的位置計(jì)算到最近和最遠(yuǎn)平面的最小距離。
Parameters:
position (Cartesian3) 計(jì)算距離的位置。
direction (Cartesian3) 從位置開始的方向。
result (Interval) 存儲最近和最遠(yuǎn)距離的間隔。
distanceSquaredTo(cartesian) → {Number}
計(jì)算從邊界球上最近點(diǎn)到點(diǎn)的估計(jì)距離平方。
Parameters:
cartesian (Cartesian3) 重點(diǎn)
Example
// Sort bounding spheres from back to front
spheres.sort(function(a, b) {
    return b.distanceSquaredTo(camera.positionWC) - a.distanceSquaredTo(camera.positionWC);
});
equals(right) → {Boolean}
將此boundingsphere與提供的boundingsphere組件進(jìn)行比較,如果相等,則返回true,否則返回false
Parameters:
right (BoundingSphere) 右側(cè)邊界球。
intersectPlane(plane) → {Intersect}
確定球體位于平面的哪一側(cè)。
Parameters:
plane (Plane) 試飛的飛機(jī)。
isOccluded(occluder) → {Boolean}
確定遮擋器是否將球體隱藏在視圖中。
Parameters:
occluder (Occluder) 封堵器。
volume() → {Number}
計(jì)算邊界球的半徑。
主站蜘蛛池模板: 雅兰床垫-会呼吸的床垫-中国高端床垫-国潮床垫品牌 | 轮式挖掘机厂家_抓铁机_全自动混凝土搅拌车_山重机械【官网】 | 深圳市佳顺优印印刷有限公司,佳顺优印,画册印刷,海报印刷,封套印刷,手提袋印刷,包装盒印刷,彩盒印刷,无碳纸印刷,不干胶印刷,信封印刷,便笺印刷,笔记本印刷,台历印刷,挂历印刷,国际会展中心附近印刷厂,宝安印刷厂,宝安教材印刷厂 | 宣传片拍摄-宣传片制作-三维动画-企业视频广告报价-北京环宇影音 | 尼龙柱鞋-弹性防爆胶圈-氟胶油封-彩色氟胶o型圈 - 巨鹿县长城矿山机械配件有限公司 | 手板机箱_亚克力机箱_医疗机箱_美容机箱_医疗设备外壳厂家_鸿堪医疗器械有限公司 | 秦皇岛天视影像有限公司,宣传片创意拍摄制作,商业广告拍摄公司,影视影像服务商 - 秦皇岛天视影像有限公司,宣传片创意拍摄制作,商业广告拍摄公司,影视影像服务商 秦皇岛市信恒电子科技有限公司 秦皇岛市华谊彩印有限公司 | 重庆中医针灸推拿培训_产后康复理疗师培训_重庆市六合职业培训学校 | 中国江苏国际经济技术合作集团有限公司-致力于做大做强国际工程、国内工程、国际贸易和城镇投资 中国建材信息总网-中国建材行业权威的信息资讯平台 | 济宁山银煤矿机械有限公司,钻采工具,防爆电器,凿岩机械,风动工具,矿山机械,建筑机械,支护设备,通风防尘,铁路设备,仪器仪表,大型设备,矿用泵,钎具类,消防类,矿车类,配件区类 | 长春互联网运营值选星广传媒,长春短视频运营,长春新媒体运营,长春互联网运营,长春抖音运营,吉林视频号代运营,吉林快手代运营,短视频推广公司,公众号运营,微博运营,新媒体运营 | 直饮水设备-纯水设备-软化水设备 - 亿家清泉水处理设备厂家 | 惠州清洁公司|惠州保洁公司|惠州清洁|惠州保洁|惠州清洁服务|惠州保洁服务|壹壹集团 | 万级无菌室-阳性对照室-干细胞实验室-广州沃霖实验室设备有限公司 | 中捷摇臂钻,数控钻床,沈阳中捷设备机床厂官网_沈阳中捷数控摇臂钻床厂 | 直膨式空调机组_风冷恒温恒湿_转轮式热回收_屋顶式空调机组_德州瑞尼森环保科技有限公司 | 领先的一站式_专利申请代理知识产权服务平台_乐知网 | 企业头条—优府网企业自媒体| 洛阳牡丹瓷工艺品生产厂家-特色旅游纪念品礼品定制网! | 压力机-压装机-黄油机-黄油泵-[广东品嘉灵]专业定制各种精密压装设备 | 陕西|青海|兰州|新疆|西宁|净化工程|西安甘肃|PCR实验室|无尘车间|净化车间-西安环亚净化工程 | 唐山搬家公司-搬家公司电话价格-四通搬家| 全网营销_网络推广外包_全网营销代运营公司-湖南微望互动 | 铜陵爱家装饰有限公司官网| 涡街流量计罗茨气体涡轮厂家_衡水多元仪表有限公司 | 水阻柜-液阻柜-高压开关柜-高压固态软启动柜-磁控软启动柜-电解粉-无功补偿柜-配电柜-襄阳源创电气 | 制沙机,反击式破碎机,重锤破碎机,泥石分离机,圆锥破碎机厂家-昆明德鑫机械 | 日本国际高中_上海日本国际高中学校排名_日本国际高中留学课程_上海日语国际高中学校学费-上海工程技术大学国际多语种特色高中课程【官网】 | 园林绿化平台|园林绿化网|苗木网|苗圃网||苗木报价网|园林招标网|园林苗木网|园林工程网|景观设计网|园林机械网|绿化苗木网| | 全功能护理训练模拟人-创伤护理人-高级电脑心肺复苏模型-上海康季 | 尾矿干排_机制砂尾矿干排_带式压滤机|山东森鹏环保科技有限公司 潍坊卓瑞机械有限公司,输送设备,石灰消化设备,餐厨垃圾设备,化机浆设备,污泥脱水 | 溶气气浮机_一体化净水设备_污水处理设备_mbr一体化污水处理设备-明基环保 | 山东中煤建设工程有限公司 | 塑料振动筛-防腐蚀振动筛-聚丙烯振动筛-塑料振动筛厂家河南迈能机械设备有限公司 | 铁氟龙膜/板/棒-铁氟龙网带/胶带/胶布-[东莞华氟]专注铁氟龙及特氟龙制品生产 | 重庆吊篮租赁-重庆脚手架租赁-重庆斌盛机械设备租赁有限公司 | 天津佳创博为科技有限公司|AGV控制器|无人搬运车|磁导航传感器|AGV专业零配件 | 冷却特性测试仪_ 刀柄热胀仪_加油小车价格_皮带张力仪_上海川奇机电设备有限公司 | 山东腾达源金属材料官网-耐磨板nm400,nm400耐磨钢板,nm500耐磨钢板切割,耐候板批发,高强板现货【价格】 | 上海钧尚电器有限公司 - Faulhaber电机 AMETEK pittman电机 AMETEK ROTRON军用航空风机 Exlar电动缸 MAE电机 MCG电机 CP电动工具 马头工具 AMCI驱动器 直流电机 减速箱 直流伺服电机,无刷电机,直线电机 直流防爆电机 防爆电机 汽车助力转向电机 EPS电机 faulhaber motor faulhaber gearbox NANOTEC电机 ELWOOD电机 PHYTRON电机 EXLAR伺服电动缸 高力矩、高性能直流电机,音圈电机,风机,直流风机,航空风机 | 宁夏密集型母线槽厂家-封闭式母线槽-电力工程安装-天地经纬电力 宁波允泰仪器有限公司-硬度计、拉力试验机、盐雾试验箱、影像测量仪、气动量仪 |