亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

OrientedBoundingBox

創(chuàng)建OrientedBoundingBox的實例。某個物體的定向接地盒是一個封閉凸的長方體。在許多情況下,它可以提供比BoundingSphereAxisAlignedBoundingBox更緊的邊界體積。
new OrientedBoundingBox(center, halfAxes)
Parameters:
center (Cartesian3) (default Cartesian3.ZERO) 盒子的中心。
halfAxes (Matrix3) (default Matrix3.ZERO) 邊界框的三個正交半軸。等價地,轉(zhuǎn)換矩陣,旋轉(zhuǎn)并縮放一個以原點為中心的0x0x0立方體。
Example
// Create an OrientedBoundingBox using a transformation matrix, a position where the box will be translated, and a scale.
var center = new bmgl.Cartesian3(1.0, 0.0, 0.0);
var halfAxes = bmgl.Matrix3.fromScale(new bmgl.Cartesian3(1.0, 3.0, 2.0), new bmgl.Matrix3());

var obb = new bmgl.OrientedBoundingBox(center, halfAxes);
See:

Members

(static) packedLength : Number

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

center : Cartesian3

盒子的中心。
Default Value: Cartesian3.ZERO

halfAxes : Matrix3

轉(zhuǎn)換矩陣,將方框旋轉(zhuǎn)到正確的位置。
Default Value: Matrix3.ZERO

Methods

(static) clone(box, result) → {OrientedBoundingBox}
復(fù)制OrientedBoundingBox實例。
Parameters:
box (OrientedBoundingBox) 要復(fù)制的邊界框。
result (OrientedBoundingBox) 存儲結(jié)果的對象。
(static) computePlaneDistances(box, position, direction, result) → {Interval}
由矢量計算的從邊界框中心到投射到方向上的位置的距離。
如果您設(shè)想具有法向的無限多個平面,這將從與邊界框相交的位置計算到最近和最遠(yuǎn)平面的最小距離。
Parameters:
box (OrientedBoundingBox) 要計算距離的邊界框。
position (Cartesian3) 計算距離的位置。
direction (Cartesian3) 從位置開始的方向。
result (Interval) 存儲最近和最遠(yuǎn)距離的間隔。
(static) distanceSquaredTo(box, cartesian) → {Number}
計算從邊界框上最近點到點的估計距離平方。
Parameters:
box (OrientedBoundingBox) 盒子。
cartesian (Cartesian3) 重點
Example
// Sort bounding boxes from back to front
boxes.sort(function(a, b) {
    return bmgl.OrientedBoundingBox.distanceSquaredTo(b, camera.positionWC) - bmgl.OrientedBoundingBox.distanceSquaredTo(a, camera.positionWC);
});
(static) equals(left, right) → {Boolean}
比較提供的orientedboundingbox組件,如果相等則返回true,否則返回false
Parameters:
left (OrientedBoundingBox) 第一個定向邊界框。
right (OrientedBoundingBox) 第二個定向接地框。
(static) fromPoints(positions, result) → {OrientedBoundingBox}
計算給定位置的定向邊界框的實例。這是使用面向邊界框解決方案(博士論文)實現(xiàn)Stefan Gottschalk的沖突查詢。參考:http://gamma.cs.unc.edu/users/gottschalk/main.pdf
Parameters:
positions (Array.<Cartesian3>) 邊界框?qū)?a href="Cartesian3.html">Cartesian3點列表。
result (OrientedBoundingBox) 存儲結(jié)果的對象。
Example
// Compute an object oriented bounding box enclosing two points.
var box = bmgl.OrientedBoundingBox.fromPoints([new bmgl.Cartesian3(2, 0, 0), new bmgl.Cartesian3(-2, 0, 0)]);
(static) fromRectangle(rectangle, minimumHeight, maximumHeight, ellipsoid, result) → {OrientedBoundingBox}
計算一個定向邊界框,該邊界框在Ellipsoid的表面上為Rectangle。無法保證邊界框的方向。
Parameters:
rectangle (Rectangle) 橢球面上的地圖矩形。
minimumHeight (Number) (default 0.0) 瓦片內(nèi)的最小高度(高程)。
maximumHeight (Number) (default 0.0) 瓦片內(nèi)的最大高度(高程)。
ellipsoid (Ellipsoid) (default Ellipsoid.WGS84) 定義矩形的橢球體。
result (OrientedBoundingBox) 存儲結(jié)果的對象。
Throws
(static) intersectPlane(box, plane) → {Intersect}
確定定向邊界框位于平面的哪一側(cè)。
Parameters:
box (OrientedBoundingBox) 要測試的定向邊界框。
plane (Plane) 試飛的飛機。
(static) isOccluded(box, occluder) → {Boolean}
確定封堵器是否從視圖中隱藏邊界框。
Parameters:
box (OrientedBoundingBox) 包圍被遮擋對象的邊界框。
occluder (Occluder) 封堵器。
(static) pack(value, array, startingIndex) → {Array.<Number>}
將提供的實例存儲到提供的數(shù)組中。
Parameters:
value (OrientedBoundingBox) 要打包的值。
array (Array.<Number>) 要打包的數(shù)組。
startingIndex (Number) (default 0) 數(shù)組中開始打包元素的索引。
(static) unpack(array, startingIndex, result) → {OrientedBoundingBox}
從壓縮數(shù)組中檢索實例。
Parameters:
array (Array.<Number>) 壓縮數(shù)組。
startingIndex (Number) (default 0) 要解包的元素的起始索引。
result (OrientedBoundingBox) 存儲結(jié)果的對象。
clone(result) → {OrientedBoundingBox}
復(fù)制此OrientedBoundingBox實例。
Parameters:
result (OrientedBoundingBox) 存儲結(jié)果的對象。
computePlaneDistances(position, direction, result) → {Interval}
由矢量計算的從邊界框中心到投射到方向上的位置的距離。
如果您設(shè)想具有法向的無限多個平面,這將從與邊界框相交的位置計算到最近和最遠(yuǎn)平面的最小距離。
Parameters:
position (Cartesian3) 計算距離的位置。
direction (Cartesian3) 從位置開始的方向。
result (Interval) 存儲最近和最遠(yuǎn)距離的間隔。
distanceSquaredTo(cartesian) → {Number}
計算從邊界框上最近點到點的估計距離平方。
Parameters:
cartesian (Cartesian3) 重點
Example
// Sort bounding boxes from back to front
boxes.sort(function(a, b) {
    return b.distanceSquaredTo(camera.positionWC) - a.distanceSquaredTo(camera.positionWC);
});
equals(right) → {Boolean}
將此orientedboundingbox與提供的orientedboundingbox組件進行比較,如果相等,則返回true,否則返回false
Parameters:
right (OrientedBoundingBox) 右側(cè)定向接地框。
intersectPlane(plane) → {Intersect}
確定定向邊界框位于平面的哪一側(cè)。
Parameters:
plane (Plane) 試飛的飛機。
isOccluded(occluder) → {Boolean}
確定封堵器是否從視圖中隱藏邊界框。
Parameters:
occluder (Occluder) 封堵器。
主站蜘蛛池模板: 国产精品永久免费自在线观看 | 好大好硬好湿好紧h | aaaa大片| aaaa黄| 男人与雌性宠物交啪啪小说 | 亚洲国产精品一区二区三区久久 | 四虎影院免费视频 | 国产福利免费看 | 91tv在线观看| 欧美男女交配 | 91日本 | 日韩高清在线观看 | 98在线视频噜噜噜国产 | 色播影院性播影院私人影院 | 暖暖 免费 高清 日本 在线1 | 黑人巨大初黑人解禁作品 | 亚洲第一se情网站 | 视频网站入口在线看 | 好大好想要 | 国产三级精品三级男人的天堂 | 成人另类视频 | 国模丰满美女冰漪34d | 精品国产乱码久久久久久免费 | 校花的第一次好紧好爽 | 欧美一级乱妇老太婆特黄 | 欧美一卡2卡三卡4卡5卡免费观看 | 精品免费久久久久久影院 | 日韩视频一区 | w7w7w7w7w免费 | 免费日批软件 | 欧美人禽杂交av片 | 日韩中文字幕在线不卡 | 我和寂寞孕妇的性事 | 午夜爱情动作片P | 国产51社区精品视频资源 | ssni-497新任美脚女教师 | 精品综合久久久久久97超人 | 青草免费在线观看 | 午夜家庭影院 | 先锋资源久久 | 国产美女亚洲精品久久久综合 |