Function Shape2D.collideAndGetContacts

Returns a list of the points where this shape touches another. If there are no collisions the list is empty. 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).

Array collideAndGetContacts (
  const(Transform2D) local_xform,
  Shape2D with_shape,
  const(Transform2D) shape_xform
) nothrow @nogc;