nape.geom.Geom
Top
|
Static Methods
Overview
nape
nape.callbacks
nape.constraint
nape.dynamics
nape.geom
nape.hacks
nape.phys
nape.shape
nape.space
nape.symbolic
nape.util
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.