Bitmap.testCollision

Tests two collision models against each other.

class Bitmap(string S, T)
@safe @nogc nothrow pure const
static if(!(S != "HB" && S != "QB" && S != "b"))
static if(!(S == "HB"))
static if(!(S == "QB"))
static if(S == "b")
bool
testCollision
(
int line
,
int lineAm
,,,
const int offset
,
const int overlapAm
)

Parameters

line int

The first line to test against on the left hand side collision model.

lineAm int

The amount of lines to be tested.

other Bitmap1Bit

The right hand side collision model.

otherLine int

The first line to test against on the right hand side collision model.

offset int

The amount, which the right hand side collision model's left edge is away from the left hand side collision model's left edge.

overlapAm int

The amount of overlap between the two objects.

Return Value

Type: bool

Meta