久久久久久一区_中文字幕在线不卡_精品不卡_久久久网_精品亚洲一区二区三区在线观看_欧美精品一区二区三区在线四季

Occluder

創(chuàng)建從對象的位置和半徑以及相機位置派生的封堵器。封堵器可用于確定其他對象是否可見或隱藏在由封堵器和相機位置定義的可見地平線之后。
new Occluder(occluderBoundingSphere, cameraPosition)
Parameters:
occluderBoundingSphere (BoundingSphere) 圍繞封堵器的邊界球體。
cameraPosition (Cartesian3) 觀察者/照相機的坐標(biāo)。
Example
// Construct an occluder one unit away from the origin with a radius of one.
var cameraPosition = bmgl.Cartesian3.ZERO;
var occluderBoundingSphere = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -1), 1);
var occluder = new bmgl.Occluder(occluderBoundingSphere, cameraPosition);

Members

cameraPosition : Cartesian3

相機的位置。

position : Cartesian3

封堵器的位置。

radius : Number

封堵器的半徑。

Methods

(static) computeOccludeePoint(occluderBoundingSphere, occludeePosition, positions) → {Object}
計算一個點,該點可用作可見性函數(shù)的遮掩位置。使用半徑為零作為遮擋半徑。通常,用戶計算用于可見性的對象周圍的邊界球;但是,也可以計算一個點,如果看到/不看到,也會指示對象是否可見/不可見。對于相對于遮光罩不移動且較大的對象(如一塊地形),更好地調(diào)用此函數(shù)。最好不要這樣稱呼,不要將對象的邊界球用于衛(wèi)星或地面車輛等對象。
Parameters:
occluderBoundingSphere (BoundingSphere) 圍繞封堵器的邊界球體。
occludeePosition (Cartesian3) 封堵器(半徑為0的邊界球)所在的點。
positions (Array.<Cartesian3>) 遮光罩表面附近地平線上的高度點列表。
Example
var cameraPosition = new bmgl.Cartesian3(0, 0, 0);
var occluderBoundingSphere = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -8), 2);
var occluder = new bmgl.Occluder(occluderBoundingSphere, cameraPosition);
var positions = [new bmgl.Cartesian3(-0.25, 0, -5.3), new bmgl.Cartesian3(0.25, 0, -5.3)];
var tileOccluderSphere = bmgl.BoundingSphere.fromPoints(positions);
var occludeePosition = tileOccluderSphere.center;
var occludeePt = bmgl.Occluder.computeOccludeePoint(occluderBoundingSphere, occludeePosition, positions);
Throws
  • DeveloperError : positions必須至少包含一個元素。
  • DeveloperError : occludeePosition必須具有除occluderBoundingSphere.center以外的值。
(static) computeOccludeePointFromRectangle(rectangle, ellipsoid) → {Object}
計算一個點,該點可用作矩形中可見性函數(shù)的遮擋位置。
Parameters:
rectangle (Rectangle) 用于創(chuàng)建邊界球體的矩形。
ellipsoid (Ellipsoid) (default Ellipsoid.WGS84) 用于確定矩形位置的橢圓體。
(static) fromBoundingSphere(occluderBoundingSphere, cameraPosition, result) → {Occluder}
從邊界球體和相機位置創(chuàng)建遮光罩。
Parameters:
occluderBoundingSphere (BoundingSphere) 圍繞封堵器的邊界球體。
cameraPosition (Cartesian3) 觀察者/照相機的坐標(biāo)。
result (Occluder) 存儲結(jié)果的對象。
computeVisibility(occludeeBS) → {Number}
確定封堵器的可見程度(不可見、部分可見或完全可見)。
Parameters:
occludeeBS (BoundingSphere) 封堵器的邊界球。
Example
var sphere1 = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -1.5), 0.5);
var sphere2 = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -2.5), 0.5);
var cameraPosition = new bmgl.Cartesian3(0, 0, 0);
var occluder = new bmgl.Occluder(sphere1, cameraPosition);
occluder.computeVisibility(sphere2); //returns Visibility.NONE
See:
  • Occluder#isVisible
isBoundingSphereVisible(occludee) → {Boolean}
確定遮擋器是否隱藏了一個球體,即occludee
Parameters:
occludee (BoundingSphere) 圍繞被遮擋對象的邊界球體。
Example
var cameraPosition = new bmgl.Cartesian3(0, 0, 0);
var littleSphere = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -1), 0.25);
var occluder = new bmgl.Occluder(littleSphere, cameraPosition);
var bigSphere = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -3), 1);
occluder.isBoundingSphereVisible(bigSphere); //returns true
See:
isPointVisible(occludee) → {Boolean}
確定遮擋器是否隱藏了一個點,即occludee
Parameters:
occludee (Cartesian3) 圍繞被遮擋對象的點。
Example
var cameraPosition = new bmgl.Cartesian3(0, 0, 0);
var littleSphere = new bmgl.BoundingSphere(new bmgl.Cartesian3(0, 0, -1), 0.25);
var occluder = new bmgl.Occluder(littleSphere, cameraPosition);
var point = new bmgl.Cartesian3(0, 0, -3);
occluder.isPointVisible(point); //returns true
See:
主站蜘蛛池模板: 欧美激情精品久久久久 | 亚洲国产一区视频 | 国产美女在线精品免费观看 | 国产一区二区三区av在线 | 国产成a人亚洲精 | 99精品欧美一区二区三区 | 国产日韩欧美视频 | 久久亚洲精品中文字幕蜜潮电影 | 日韩五码在线 | 午夜一区二区三区在线观看 | 久久九九 | 久久波多野结衣 | 自拍视频在线观看免费 | 蜜桃精品视频在线 | 国产亚洲欧美在线 | 久草网址 | 欧美精品一区二区在线观看 | 亚洲午夜精品视频 | 国产黄色在线观看 | 亚洲日韩视频免费观看 | 久久亚洲视频 | 精品一区二区av | 久久久久久久中文 | 日韩精品一区二区三区中文在线 | 曰本人做爰大片免费观看 | 欧美在线播放一区 | 伊人超碰| 日韩欧美国产一区二区 | 国产欧美一区二区精品性色 | 日本黄色电影网站 | 午夜激情综合 | 我看一级毛片 | 欧美一区二区三区在线看 | 亚洲国产一区二区三区在线观看 | 国产一区二区三区久久 | 福利视频一区 | 日韩在线精品 | 91在线播 | 国产在线拍偷自拍观看视频网站 | 欧美日韩视频在线 | 久久久久久久久久久一区二区 |