DX9ToolsR4 - Created by: X

GeneralHelpers.RestrictVector2 Method (Vector2, RectangleF)

Restricts a Vector2 type within a specified region.

[Visual Basic]
Overloads Public Shared Function RestrictVector2( _
   ByVal V As Vector2, _
   ByVal R As RectangleF _
) As Vector2
[C#]
public static Vector2 RestrictVector2(
   Vector2 V,
   RectangleF R
);

Parameters

V
The vector2 type to restrict.
R
The rectangle representing the region 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