Rect.contains

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

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

Return Value

Type: bool

true if the point is inside, false otherwise.

Meta