C# Class Nexus.Objects2D.Box2D

显示文件 Open project: tgjones/nexus Class Usage Examples

Public Methods

Method Description
Box2D ( IntPoint2D min, IntPoint2D max ) : System
Expand ( IntPoint2D point ) : void
Intersection ( Box2D box1, Box2D box2 ) : Box2D
Union ( Box2D box1, Box2D box2 ) : Box2D

Method Details

Box2D() public method

public Box2D ( IntPoint2D min, IntPoint2D max ) : System
min IntPoint2D
max IntPoint2D
return System

Expand() public method

public Expand ( IntPoint2D point ) : void
point IntPoint2D
return void

Intersection() public static method

public static Intersection ( Box2D box1, Box2D box2 ) : Box2D
box1 Box2D
box2 Box2D
return Box2D

Union() public static method

public static Union ( Box2D box1, Box2D box2 ) : Box2D
box1 Box2D
box2 Box2D
return Box2D