[name]
Mainly used internaly by [page:CanvasRenderer] for 2D clipping.
Constructor
[name]()
Methods
.getX() [page:Float]
.getY() [page:Float]
.getWidth() [page:Float]
.getHeight() [page:Float]
.getLeft() [page:Float]
.getTop() [page:Float]
.getRight() [page:Float]
.getBottom() [page:Float]
.set( [page:Float left], [page:Float top], [page:Float right], [page:Float bottom] )
.addPoint( [page:Float x], [page:Float y] )
.add3Points( [page:Float x1], [page:Float y1], [page:Float x2], [page:Float y2], [page:Float x3], [page:Float y3] )
.addRectangle( [page:Rectangle r] )
.inflate( [page:Float v] )
.minSelf( [page:Rectangle r] )
.intersects( [page:Rectangle r] ) [page:Boolean]
Adapted from [link:http://gamemath.com/2011/09/detecting-whether-two-boxes-overlap/].
.empty()
.isEmpty() [page:Boolean]
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]