C# Class SSTUTools.UVArea

Represents an area of a texture to be used by a set of faces. Faces will be mapped to this area depending upon the type of mapping selected (straight or circular)
Show file Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
name String
u1 float
u2 float
v1 float
v2 float

Public Methods

Method Description
ToString ( ) : string
UVArea ( ConfigNode node ) : System
UVArea ( UVArea input ) : System
UVArea ( float u1, float v1, float u2, float v2 ) : System
UVArea ( int x1, int y1, int x2, int y2, int textureSize ) : System
getU ( float xPercent ) : float
getUV ( Vector2 min, Vector2 max, Vector2 vert ) : Vector2
getUV ( float xPercent, float yPercent ) : Vector2
getV ( float yPercent ) : float

Method Details

ToString() public method

public ToString ( ) : string
return string

UVArea() public method

public UVArea ( ConfigNode node ) : System
node System.ConfigNode
return System

UVArea() public method

public UVArea ( UVArea input ) : System
input UVArea
return System

UVArea() public method

public UVArea ( float u1, float v1, float u2, float v2 ) : System
u1 float
v1 float
u2 float
v2 float
return System

UVArea() public method

public UVArea ( int x1, int y1, int x2, int y2, int textureSize ) : System
x1 int
y1 int
x2 int
y2 int
textureSize int
return System

getU() public method

public getU ( float xPercent ) : float
xPercent float
return float

getUV() public method

public getUV ( Vector2 min, Vector2 max, Vector2 vert ) : Vector2
min Vector2
max Vector2
vert Vector2
return Vector2

getUV() public method

public getUV ( float xPercent, float yPercent ) : Vector2
xPercent float
yPercent float
return Vector2

getV() public method

public getV ( float yPercent ) : float
yPercent float
return float

Property Details

name public property

public String name
return String

u1 public property

public float u1
return float

u2 public property

public float u2
return float

v1 public property

public float v1
return float

v2 public property

public float v2
return float