Function CCRectIntersection

  • Calculates the intersection of two rectangles.

    Parameters

    • a: CCRect

      The first rectangle to intersect

    • b: CCRect

      The second rectangle to intersect

    Returns CCRect

    The intersection of a and b