Rect.contains

Check if a point is inside the rectangle's area.

  1. bool contains(E x, E y)
    struct Rect(T)
    const
    bool
    contains
    (
    E
    )
    (
    E x
    ,
    E y
    )
    if (
    isNumeric!(E)
    )
    if (
    isNumeric!(T)
    )
  2. bool contains(Vector2!(E) point)

Parameters

x E

X coordinate of the point to test

y E

Y coordinate of the point to test

Return Value

Type: bool

true if the point is inside, false otherwise.

Meta