Rect.contains

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

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

Parameters

point
Type: Vector2!(E)

Point to test

Return Value

Type: bool

true if the point is inside, false otherwise.

Meta