Box.intersection

Intersects the two given #graphene_box_t.

If the two boxes do not intersect, res will contain a degenerate box initialized with graphene.box.Box.empty.

class Box
bool
intersection

Parameters

b graphene.box.Box

a #graphene_box_t

res graphene.box.Box

return location for the result

Return Value

Type: bool

true if the two boxes intersect