Table of Contents

Interface IRectangle<T>

Namespace
Whim
Assembly
Whim.dll
A rectangle, where the origin is in the top-left of the primary monitor.
public interface IRectangle<T> : IPoint<T> where T : INumber<T>

Type Parameters

T
Inherited Members
Extension Methods

Properties

Center

The center of the rectangle.
IPoint<T> Center { get; }

Property Value

IPoint<T>

Height

The height, in pixels.
T Height { get; }

Property Value

T

Width

The width, in pixels.
T Width { get; }

Property Value

T

Methods

ContainsPoint(IPoint<T>)

Indicates whether the specified point is inside this item's bounding box.
bool ContainsPoint(IPoint<T> point)

Parameters

point IPoint<T>
The point to check.

Returns

bool
true if the location given by point is inside this IRectangle<T>'s bounding box; otherwise, false.