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(),
fork icon185
star icon870
watch icon40

+ 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;
fork icon1
star icon3
watch icon0

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}
 */
fork icon0
star icon1
watch icon1

+ 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) {
fork icon0
star icon0
watch icon0

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();
fork icon0
star icon0
watch icon3

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)