国产久_亚欧精品一区_久久亚洲美女_99精品在线观看_日韩成人三级_久久精品久久久久

PerspectiveOffCenterFrustum

視錐由6個平面定義。每個平面由一個Cartesian4對象表示,其中X、Y和Z分量定義垂直于平面的單位向量,而W分量是平面與原點/相機(jī)位置之間的距離。
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
遠(yuǎn)剪裁平面距離。
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

遠(yuǎn)平面的距離。
Default Value: 500000000.0

(readonly) infiniteProjectionMatrix : Matrix4

獲取從具有無限遠(yuǎn)平面的視圖截錐計算的透視投影矩陣。
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) 存儲結(jié)果的對象。
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) 中心截錐的右側(cè)透視圖。
equalsEpsilon(other, relativeEpsilon, absoluteEpsilon) → {Boolean}
比較提供的透視圖的中心截錐組件,如果通過絕對或相對公差測試,則返回true,否則返回false
Parameters:
other (PerspectiveOffCenterFrustum) 中心截錐的右側(cè)透視圖。
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) 從像素空間到坐標(biāo)空間的比例因子。
result (Cartesian2) 存儲結(jié)果的對象。
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
主站蜘蛛池模板: 激情五月婷婷综合 | 国产美女在线看 | 伊人久久91 | 欧美午夜一区二区三区 | 亚洲国产精品久久精品怡红院 | 欧美精品一区二区三区蜜桃视频 | 欧美一区二区三区激情 | 成年免费大片黄在线观看岛国 | a亚洲天堂| 色吧久久 | 一区二区视频免费看 | 国内黄色网址 | 久久亚洲精品久久国产一区二区 | 亚洲国产综合在线播放av66 | 美女网站色黄 | yellow网站在线观看 | 青青在线 | 欧美成人一级 | 人人爱人人射 | 成人免费视频网站在线看 | 毛片黄色 | 成人性生交免费大片 | 在线日韩一区二区 | 狠狠干干干 | 日韩3区| 国产精品久久亚洲7777 | 九九热视频在线播放 | av在线不卡播放 | 中文字幕羽月希黑人侵犯 | 天天操免费视频 | 婷婷六月网 | 蜜桃视频成人在线观看 | 亚洲三级电影在线 | 日本高清视频wwww色 | 中文字幕亚洲精品日韩 | 中文字幕一区不卡 | 日本a∨精品中文字幕在线 日本a∨在线 | 亚洲视频在线观看视频 | 精品自拍偷拍 | 成人毛片在线视频 | 日韩最新av|