Table of Contents

Method Contains

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

Contains(double, double)

Determines whether the specified point lies inside the rectangle (inclusive of edges).

public bool Contains(double x, double y)

Parameters

x double

The X-coordinate of the point.

y double

The Y-coordinate of the point.

Returns

bool

true if the point is inside or on the edge of the rectangle; otherwise, false.

Contains(IPoint)

Determines whether the specified IPoint lies inside the rectangle (inclusive of edges).

public bool Contains(IPoint point)

Parameters

point IPoint

The point to test.

Returns

bool

true if the point is inside or on the edge of the rectangle; otherwise, false.

Contains(IBounds)

Determines whether this rectangle completely contains another bounds object.

public bool Contains(IBounds bounds)

Parameters

bounds IBounds

The bounds to test for containment.

Returns

bool

true if this rectangle fully contains bounds; otherwise, false.