婷婷久久网-婷婷久久久久-婷婷久久久-婷婷久-国产微拍精品一区-国产网址在线观看

PerspectiveOffCenterFrustum

視錐由6個平面定義。每個平面由一個Cartesian4對象表示,其中X、Y和Z分量定義垂直于平面的單位向量,而W分量是平面與原點/相機位置之間的距離。
new PerspectiveOffCenterFrustum(options)
Parameters:
options (Object) 一個
Name Description
options.left
Number
左剪裁平面距離。
options.right
Number
右裁剪平面距離。
options.top
Number
頂部剪裁平面距離。
options.bottom
Number
底部剪切平面距離。
options.near
Number
default 1.0
近削平面距離。
options.far
Number
default 500000000.0
遠剪裁平面距離。
Example
var frustum = new bmgl.PerspectiveOffCenterFrustum({
    left : -1.0,
    right : 1.0,
    top : 1.0,
    bottom : -1.0,
    near : 1.0,
    far : 100.0
});
See:

Members

bottom : Number

定義底部剪切平面。
Default Value: undefined

far : Number

遠平面的距離。
Default Value: 500000000.0

(readonly) infiniteProjectionMatrix : Matrix4

獲取從具有無限遠平面的視圖截錐計算的透視投影矩陣。
See:

left : Number

定義左剪裁平面。
Default Value: undefined

near : Number

近平面的距離。
Default Value: 1.0

(readonly) projectionMatrix : Matrix4

獲取從視圖截錐計算的透視投影矩陣。
See:
定義右剪切平面。
Default Value: undefined

top : Number

定義頂部剪切平面。
Default Value: undefined

Methods

clone(result) → {PerspectiveOffCenterFrustum}
返回透視OffCenterFrutStum實例的副本。
Parameters:
result (PerspectiveOffCenterFrustum) 存儲結果的對象。
computeCullingVolume(position, direction, up) → {CullingVolume}
為此截錐創(chuàng)建剔除體積。
Parameters:
position (Cartesian3) 眼睛的位置。
direction (Cartesian3) 視圖方向。
up (Cartesian3) 向上方向。
Example
// Check if a bounding volume intersects the frustum.
var cullingVolume = frustum.computeCullingVolume(cameraPosition, cameraDirection, cameraUp);
var intersect = cullingVolume.computeVisibility(boundingVolume);
equals(other) → {Boolean}
比較提供的透視圖的中心截錐組件,如果相等則返回true,否則返回false
Parameters:
other (PerspectiveOffCenterFrustum) 中心截錐的右側透視圖。
equalsEpsilon(other, relativeEpsilon, absoluteEpsilon) → {Boolean}
比較提供的透視圖的中心截錐組件,如果通過絕對或相對公差測試,則返回true,否則返回false。
Parameters:
other (PerspectiveOffCenterFrustum) 中心截錐的右側透視圖。
relativeEpsilon (Number) 用于等同性測試的相對epsilon公差。
absoluteEpsilon (Number) (default relativeEpsilon) 用于等同性測試的絕對epsilon公差。
getPixelDimensions(drawingBufferWidth, drawingBufferHeight, distance, pixelRatio, result) → {Cartesian2}
返回像素的寬度和高度(以米為單位)。
Parameters:
drawingBufferWidth (Number) 繪圖緩沖區(qū)的寬度。
drawingBufferHeight (Number) 繪圖緩沖區(qū)的高度。
distance (Number) 到近平面的距離,單位為米。
pixelRatio (Number) 從像素空間到坐標空間的比例因子。
result (Cartesian2) 存儲結果的對象。
Examples
// Example 1
// Get the width and height of a pixel.
var pixelSize = camera.frustum.getPixelDimensions(scene.drawingBufferWidth, scene.drawingBufferHeight, 1.0, scene.pixelRatio, new bmgl.Cartesian2());
// Example 2
// Get the width and height of a pixel if the near plane was set to 'distance'.
// For example, get the size of a pixel of an image on a billboard.
var position = camera.position;
var direction = camera.direction;
var toCenter = bmgl.Cartesian3.subtract(primitive.boundingVolume.center, position, new bmgl.Cartesian3());      // vector from camera to a primitive
var toCenterProj = bmgl.Cartesian3.multiplyByScalar(direction, bmgl.Cartesian3.dot(direction, toCenter), new bmgl.Cartesian3()); // project vector onto camera direction vector
var distance = bmgl.Cartesian3.magnitude(toCenterProj);
var pixelSize = camera.frustum.getPixelDimensions(scene.drawingBufferWidth, scene.drawingBufferHeight, distance, scene.pixelRatio, new bmgl.Cartesian2());
Throws
主站蜘蛛池模板: 泰国《永恒/eternity》| 黑暗圣经在线观看| 天堂在线电影| reimei影虎| 青草国产视频| 吴雪雯| 林正英僵尸大全免费看| 单敬尧| 好看电影视频| 张荣耀| 大秦帝国第一部免费看| 倒带简谱| 妥协电影在线观看完整版中文| 韩剧《神奇的娃娃》免费观看| free teen| 海绵宝宝第十四季| 褚阳| 生长因子是结痂前用还是掉痂后用| 杨门女将演员表| 新红楼梦2010在线观看免费| 任港秀| g71编程实例及解释| 一眉道人演员表| 仪铭| 褚阳| 2025微信头像最新版本| 《平凡之路》电影| 电影《皮埃里诺》免费观看| 赖小子电影| 白丝袜脚| 吉泽明步番号| 拯救大兵| 幸福年简谱| 蜜蜂图片大全大图| 白蛇三| 四角号码| 好看女生头像| 茅原实里| 常宝霆| chaoporn| 隐藏的真相|