DX9ToolsR4 - Created by: X

GeneralHelpers.UVFromPoint Method (Single, Single, Single, Single)

Converts a X/Y value into a texture coordanant.

[Visual Basic]
Overloads Public Shared Function UVFromPoint( _
   ByVal ImageWidth As Single, _
   ByVal ImageHeight As Single, _
   ByVal X As Single, _
   ByVal Y As Single _
) As Vector2
[C#]
public static Vector2 UVFromPoint(
   float ImageWidth,
   float ImageHeight,
   float X,
   float Y
);

Parameters

ImageWidth
The width of the image.
ImageHeight
The height of the image.
X
The X location inside the image.
Y
The Y 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