高清在线一区二区_激情网在线观看_激情一区二区三区_精品中文一区_亚洲中字幕_亚洲天堂一区

OrientedBoundingBox

創建OrientedBoundingBox的實例。某個物體的定向接地盒是一個封閉凸的長方體。在許多情況下,它可以提供比BoundingSphereAxisAlignedBoundingBox更緊的邊界體積。
new OrientedBoundingBox(center, halfAxes)
Parameters:
center (Cartesian3) (default Cartesian3.ZERO) 盒子的中心。
halfAxes (Matrix3) (default Matrix3.ZERO) 邊界框的三個正交半軸。等價地,轉換矩陣,旋轉并縮放一個以原點為中心的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

用于將對象打包到數組中的元素數。

center : Cartesian3

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

halfAxes : Matrix3

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

Methods

(static) clone(box, result) → {OrientedBoundingBox}
復制OrientedBoundingBox實例。
Parameters:
box (OrientedBoundingBox) 要復制的邊界框。
result (OrientedBoundingBox) 存儲結果的對象。
(static) computePlaneDistances(box, position, direction, result) → {Interval}
由矢量計算的從邊界框中心到投射到方向上的位置的距離。
如果您設想具有法向的無限多個平面,這將從與邊界框相交的位置計算到最近和最遠平面的最小距離。
Parameters:
box (OrientedBoundingBox) 要計算距離的邊界框。
position (Cartesian3) 計算距離的位置。
direction (Cartesian3) 從位置開始的方向。
result (Interval) 存儲最近和最遠距離的間隔。
(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}
計算給定位置的定向邊界框的實例。這是使用面向邊界框解決方案(博士論文)實現Stefan Gottschalk的沖突查詢。參考:http://gamma.cs.unc.edu/users/gottschalk/main.pdf
Parameters:
positions (Array.<Cartesian3>) 邊界框將包含的Cartesian3點列表。
result (OrientedBoundingBox) 存儲結果的對象。
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) 瓦片內的最小高度(高程)。
maximumHeight (Number) (default 0.0) 瓦片內的最大高度(高程)。
ellipsoid (Ellipsoid) (default Ellipsoid.WGS84) 定義矩形的橢球體。
result (OrientedBoundingBox) 存儲結果的對象。
Throws
(static) intersectPlane(box, plane) → {Intersect}
確定定向邊界框位于平面的哪一側。
Parameters:
box (OrientedBoundingBox) 要測試的定向邊界框。
plane (Plane) 試飛的飛機。
(static) isOccluded(box, occluder) → {Boolean}
確定封堵器是否從視圖中隱藏邊界框。
Parameters:
box (OrientedBoundingBox) 包圍被遮擋對象的邊界框。
occluder (Occluder) 封堵器。
(static) pack(value, array, startingIndex) → {Array.<Number>}
將提供的實例存儲到提供的數組中。
Parameters:
value (OrientedBoundingBox) 要打包的值。
array (Array.<Number>) 要打包的數組。
startingIndex (Number) (default 0) 數組中開始打包元素的索引。
(static) unpack(array, startingIndex, result) → {OrientedBoundingBox}
從壓縮數組中檢索實例。
Parameters:
array (Array.<Number>) 壓縮數組。
startingIndex (Number) (default 0) 要解包的元素的起始索引。
result (OrientedBoundingBox) 存儲結果的對象。
clone(result) → {OrientedBoundingBox}
復制此OrientedBoundingBox實例。
Parameters:
result (OrientedBoundingBox) 存儲結果的對象。
computePlaneDistances(position, direction, result) → {Interval}
由矢量計算的從邊界框中心到投射到方向上的位置的距離。
如果您設想具有法向的無限多個平面,這將從與邊界框相交的位置計算到最近和最遠平面的最小距離。
Parameters:
position (Cartesian3) 計算距離的位置。
direction (Cartesian3) 從位置開始的方向。
result (Interval) 存儲最近和最遠距離的間隔。
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) 右側定向接地框。
intersectPlane(plane) → {Intersect}
確定定向邊界框位于平面的哪一側。
Parameters:
plane (Plane) 試飛的飛機。
isOccluded(occluder) → {Boolean}
確定封堵器是否從視圖中隱藏邊界框。
Parameters:
occluder (Occluder) 封堵器。
主站蜘蛛池模板: 国产羞羞视频在线观看 | 免费毛片视频 | 日本一级黄色毛片 | 国产精品白嫩白嫩大学美女 | 国产成人av免费观看 | 91久久一区 | 久综合色 | 国产精品伊人久久 | 干色视频 | av日韩一区二区三区 | 久久福利在线 | 国产69精品99久久久久久宅男 | 欧美成人精品一区二区三区 | 精品国产一区二 | 国产流白浆高潮在线观看 | 亚洲精品午夜国产va久久成人 | 国产成人av在线 | 99视频有精品视频高清 | 1级毛片在线观看 | 欧美a一| 欧美精品一区二区三区四区 | 国产午夜亚洲精品午夜鲁丝片 | 久久精品国产精品亚洲 | 国产电影精品 | 在线影院av | 在线观看国产网站 | 国产一区二区精品91 | 国产1区2区在线 | 欧美亚洲免费 | 成人毛片一区 | 国产精品久久久久久久久久三级 | 在线成人影视 | 黄色免费电影网址 | 草莓视频久久 | 日韩视频不卡 | 久久69精品久久久久久国产越南 | 色戒在线版 | 日韩视频在线观看免费 | 91色琪琪电影亚洲精品久久 | 亚洲午夜天堂吃瓜在线 | av影院在线 |