CgmRectangle.Contains

Contains(CgmPoint)

Determines if the specified point is contained within this rectangle.

public bool Contains(CgmPoint point)
ParameterTypeDescription
pointCgmPointThe point to test.

Return Value

This method returns true if the point defined by x and y is contained within this rectangle; otherwise false.

See Also


Contains(double, double)

Determines if the specified point is contained within this rectangle.

public bool Contains(double x, double y)
ParameterTypeDescription
xDoubleThe x-coordinate of the point to test.
yDoubleThe y-coordinate of the point to test.

Return Value

This method returns true if the point defined by x and y is contained within this rectangle; otherwise false.

See Also


Contains(CgmPoint, double)

Determines if the specified point is contained within this rectangle.

public bool Contains(CgmPoint point, double maxDistance)
ParameterTypeDescription
pointCgmPointThe point to test.
maxDistanceDoubleThe maximum distance to the rectangle border.

Return Value

This method returns true if the point defined by x and y is contained within this rectangle; otherwise false.

See Also


Contains(double, double, double)

Determines if the specified point is contained within this rectangle.

public bool Contains(double x, double y, double maxDinstance)
ParameterTypeDescription
xDoubleThe x-coordinate of the point to test.
yDoubleThe y-coordinate of the point to test.
maxDistanceDoubleThe maximum distance to the rectangle border.

Return Value

This method returns true if the point defined by x and y is contained within this rectangle; otherwise false.

See Also