test method

bool test(
  1. Layers layers
)

layers - a Layers object

Returns true if this and the passed layers object have at least one layer in common.

Implementation

bool test(Layers layers) => (mask & layers.mask) != 0;