Function Shape2D.collide

Returns true if this shape is colliding with another. This method needs the transformation matrix for this shape (local_xform), the shape to check collisions with (with_shape), and the transformation matrix of that shape (shape_xform).

bool collide (
  const(Transform2D) local_xform,
  Shape2D with_shape,
  const(Transform2D) shape_xform
) nothrow @nogc;