MathHelperPointInRectangle Method
|
Checks if a point is inside a rectangle.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public static bool PointInRectangle(
Vector2 Position,
Vector2 RectStartPoint,
Vector2 RectEndPoint
)
Public Shared Function PointInRectangle (
Position As Vector2,
RectStartPoint As Vector2,
RectEndPoint As Vector2
) As Boolean
public:
static bool PointInRectangle(
Vector2 Position,
Vector2 RectStartPoint,
Vector2 RectEndPoint
)
static member PointInRectangle :
Position : Vector2 *
RectStartPoint : Vector2 *
RectEndPoint : Vector2 -> bool
STATIC METHOD PointInRectangle(
Position AS Vector2,
RectStartPoint AS Vector2,
RectEndPoint AS Vector2
) AS LOGIC
Parameters
- Position
- Type: DXFReaderNETVector2
A point. - RectStartPoint
- Type: DXFReaderNETVector2
Rectangle start point. - RectEndPoint
- Type: DXFReaderNETVector2
Rectangle end point.
Return Value
Type:
BooleanTrue if the point is inside the rectangle.
See Also