nape.geom.Geom

type
class
Geom class provides interface to collision detection routines in nape.

Static Methods

static function contains(shape1:nape.shape.Shape, shape2:nape.shape.Shape):Bool

+ Determine if one Shape is entirely contained within another.

static function distance(shape1:nape.shape.Shape, shape2:nape.shape.Shape, out1:Vec2, out2:Vec2):Float

+ Determine distance and closest points between two Shapes.

static function distanceBody(body1:nape.phys.Body, body2:nape.phys.Body, out1:Vec2, out2:Vec2):Float

+ Determine distance and closest points between two Bodies.

static function intersects(shape1:nape.shape.Shape, shape2:nape.shape.Shape):Bool

+ Determine if two Shapes intersect.

static function intersectsBody(body1:nape.phys.Body, body2:nape.phys.Body):Bool

+ Determine if two Bodies intersect.