How to use the Box2 function from three
Find comprehensive JavaScript three.Box2 code examples handpicked from public code repositorys.
100 101 102 103 104 105 106 107 108 109
_patterns = {}, _uvs, _uv1x, _uv1y, _uv2x, _uv2y, _uv3x, _uv3y, _clipBox = new THREE.Box2(), _clearBox = new THREE.Box2(), _elemBox = new THREE.Box2(), _ambientLight = new THREE.Color(),
185
870
40
+ 29 other calls in file
113 114 115 116 117 118 119 120 121 122
elements.push(element); }; // const scale = new three_1.Vector2(); const screenPositionPixels = new three_1.Vector2(); const validArea = new three_1.Box2(); const viewport = new three_1.Vector4(); this.onBeforeRender = function (renderer, scene, camera) { renderer.getCurrentViewport(viewport); const invAspect = viewport.w / viewport.z;
1
3
0
GitHub: VeinKowal/veins
606 607 608 609 610 611 612 613 614 615
if (sn > this.north) { this.north = sn; } } /** * Instance Extent with THREE.Box2 * @param {string} crs Projection of extent to instancied. * @param {THREE.Box2} box * @return {Extent} */
0
1
1
+ 2 other calls in file
156 157 158 159 160 161 162 163 164
// var scale = new THREE.Vector2(); var screenPositionPixels = new THREE.Vector2(); var validArea = new THREE.Box2(); var viewport = new THREE.Vector4(); this.onBeforeRender = function (renderer, scene, camera) {
0
0
0
42 43 44 45 46 47 48 49 50 51
_svgWidthHalf; _svgHeightHalf; _v1; _v2; _v3; _clipBox = new THREE.Box2(); _elemBox = new THREE.Box2(); _color = new THREE.Color(); _diffuseColor = new THREE.Color();
0
0
3
+ 3 other calls in file
three.Vector3 is the most popular function in three (22341 examples)