Box2.kl

Types

Box2 (struct)

The Box2 represents a 2 dimensional bounding box. It uses Vec2 types for each of the 2 elements.

参考

Box3

/*
** Example: Construct Box2
*/

// create a box2
Vec2 min(0.0, 0.0);
Vec2 max(1.0, 1.0);
Box2 box(min, max);

Members

Vec2 min  
Vec2 max  

Methods

  Box2 ( in Box2 other )
  Box2 ( in Vec2 min, in Vec2 max )
  Box2 ()
Box2 clone ? ()
UInt32 hash ? ()
Boolean intersects ? ( in Box2 that )
Boolean isEmpty ? ()
  merge ! ( in Box2 v )
  merge ! ( in Vec2 v )
  setEmpty ! ()

Operators

Box2 = ( Param other )