Click or drag to resize

MathHelperPointInRectangle Method

Checks if a point is inside a rectangle.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.52
Syntax
public static bool PointInRectangle(
	Vector2 Position,
	Vector2 RectStartPoint,
	Vector2 RectEndPoint
)

Parameters

Position
Type: DXFReaderNETVector2
A point.
RectStartPoint
Type: DXFReaderNETVector2
Rectangle start point.
RectEndPoint
Type: DXFReaderNETVector2
Rectangle end point.

Return Value

Type: Boolean
True if the point is inside the rectangle.
See Also