uPano  v3.1
InfinityCode.uPano.CubeUV Class Reference

UV of texture for cube sides More...

Inherits IEnumerable.

Public Member Functions

 CubeUV (RotatableRectUV top, RotatableRectUV front, RotatableRectUV left, RotatableRectUV back, RotatableRectUV right, RotatableRectUV bottom)
 Constructor More...
 
int GetSideIndex (Vector2 uv)
 Returns the side index by UV More...
 

Public Attributes

RotatableRectUV top
 UV of top side More...
 
RotatableRectUV front
 UV of front side More...
 
RotatableRectUV left
 UV of left side More...
 
RotatableRectUV back
 UV of back side More...
 
RotatableRectUV right
 UV of right side More...
 
RotatableRectUV bottom
 UV of bottom side More...
 

Static Public Attributes

static string[] sides = { "Top", "Front", "Left", "Back", "Right", "Bottom" }
 Side labels More...
 

Properties

RotatableRectUV this[int index] [get, set]
 Get and set UV of side by index More...
 

Detailed Description

UV of texture for cube sides

Constructor & Destructor Documentation

◆ CubeUV()

InfinityCode.uPano.CubeUV.CubeUV ( RotatableRectUV  top,
RotatableRectUV  front,
RotatableRectUV  left,
RotatableRectUV  back,
RotatableRectUV  right,
RotatableRectUV  bottom 
)

Constructor

Parameters
topUV of top side
frontUV of front side
leftUV of left side
backUV of back side
rightUV of right side
bottomUV of bottom side

Member Function Documentation

◆ GetSideIndex()

int InfinityCode.uPano.CubeUV.GetSideIndex ( Vector2  uv)

Returns the side index by UV

Parameters
uvUV
Returns
Side index

Member Data Documentation

◆ back

RotatableRectUV InfinityCode.uPano.CubeUV.back

UV of back side

◆ bottom

RotatableRectUV InfinityCode.uPano.CubeUV.bottom

UV of bottom side

◆ front

RotatableRectUV InfinityCode.uPano.CubeUV.front

UV of front side

◆ left

RotatableRectUV InfinityCode.uPano.CubeUV.left

UV of left side

◆ right

RotatableRectUV InfinityCode.uPano.CubeUV.right

UV of right side

◆ sides

string [] InfinityCode.uPano.CubeUV.sides = { "Top", "Front", "Left", "Back", "Right", "Bottom" }
static

Side labels

◆ top

RotatableRectUV InfinityCode.uPano.CubeUV.top

UV of top side

Property Documentation

◆ this[int index]

RotatableRectUV InfinityCode.uPano.CubeUV.this[int index]
getset

Get and set UV of side by index

Parameters
indexIndex of side
Returns
UV of side