C# Class UIUVRect, framework

Mostra file Open project: fistbump/framework Class Usage Examples

Public Properties

Property Type Description
lowerLeftUV Vector2
uvDimensions Vector2
zero UIUVRect,

Public Methods

Method Description
UIUVRect ( int x, int y, int width, int height, Vector2 textureSize ) : System

Automatically converts coordinates to UV space as specified by textureSize

Method Details

UIUVRect() public method

Automatically converts coordinates to UV space as specified by textureSize
public UIUVRect ( int x, int y, int width, int height, Vector2 textureSize ) : System
x int
y int
width int
height int
textureSize Vector2
return System

Property Details

lowerLeftUV public_oe property

public Vector2 lowerLeftUV
return Vector2

uvDimensions public_oe property

public Vector2 uvDimensions
return Vector2

zero public_oe static_oe property

Convenience property to return a UVRect of all zeros
public static UIUVRect, zero
return UIUVRect,