DX9ToolsR4 - Created by: X

GeneralHelpers.UVFromPoint Method (Size, Point)

Converts a X/Y value into a texture coordanant.

[Visual Basic]
Overloads Public Shared Function UVFromPoint( _
   ByVal ImageSize As Size, _
   ByVal P As Point _
) As Vector2
[C#]
public static Vector2 UVFromPoint(
   Size ImageSize,
   Point P
);

Parameters

ImageSize
The size of the image.
P
The location inside the image.

Return Value

Returns a Vector2 type representing the converted X/Y value.

See Also

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