DX9ToolsR4 - Created by: X

GeneralHelpers.RestrictVector2 Method (Vector2, PointF, SizeF)

Restricts a Vector2 type within a specified region.

[Visual Basic]
Overloads Public Shared Function RestrictVector2( _
   ByVal V As Vector2, _
   ByVal L As PointF, _
   ByVal S As SizeF _
) As Vector2
[C#]
public static Vector2 RestrictVector2(
   Vector2 V,
   PointF L,
   SizeF S
);

Parameters

V
The vector2 type to restrict.
L
The location representing the top left region to restrict the Vector2 type to.
S
The size of the area relative to the location parameter to restrict the Vector2 type to.

Return Value

Returns the restricted Vector2 type.

See Also

GeneralHelpers Class | CBX.Libs.DX9ToolsR4 Namespace | GeneralHelpers.RestrictVector2 Overload List