C# Class UIUVRect, framework

Show 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 property

public Vector2 lowerLeftUV
return Vector2

uvDimensions public property

public Vector2 uvDimensions
return Vector2

zero public static property

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