Rect.intersects

Check the intersection between two rectangles.

  1. bool intersects(Rect!(E) rectangle)
    struct Rect(T)
    bool
    intersects
    const
    (
    E
    )
    if (
    isNumeric!(E)
    )
    if (
    isNumeric!(T)
    )
  2. bool intersects(Rect!(E) rectangle, out Rect!(O) intersection)

Parameters

rectangle
Type: Rect!(E)

Rectangle to test

Return Value

Type: bool

true if rectangles overlap, false otherwise.

Meta