![]() |
uPano
v3.1
|
Rotatable UV of texture side More...
Public Types | |
| enum | Rotation { Rotation.rotation0, Rotation.rotation90, Rotation.rotation180, Rotation.rotation270 } |
| Enum of rotation angles More... | |
Public Member Functions | |
| RotatableRectUV (float left, float top, float right, float bottom, Rotation rotation=Rotation.rotation0) | |
| Constructor More... | |
| bool | Contain (Vector2 uv) |
| Checks the current rect contains this UV More... | |
| Vector2 | GetUVBilinear (float rx, float ry) |
| Returns UV at normalized coordinates for this rect More... | |
| Vector3 | GetWorldPosition (Vector2 uv, CubeSide cubeSide) |
| Converts UV to Unity World Position on the side of the cube with the size (2, 2, 2) More... | |
| void | SetUVToArray (Vector2[] uv, int index) |
| Sets UV values in the array More... | |
Public Attributes | |
| float | left |
| Left texture U More... | |
| float | top |
| Top texture V More... | |
| float | right |
| Right texture U More... | |
| float | bottom |
| Bottom texture V More... | |
| Rotation | rotation |
| Rotation of UV More... | |
Properties | |
| static RotatableRectUV | full [get] |
| UV whole texture More... | |
| float | height [get] |
| Height of texture V More... | |
| float | width [get] |
| Width of texture U More... | |
| float | this[int index] [get, set] |
| Get and set side by index More... | |
Rotatable UV of texture side
|
strong |
| InfinityCode.uPano.RotatableRectUV.RotatableRectUV | ( | float | left, |
| float | top, | ||
| float | right, | ||
| float | bottom, | ||
| Rotation | rotation = Rotation.rotation0 |
||
| ) |
Constructor
| left | Left texture U |
| top | Top texture V |
| right | Right texture U |
| bottom | Bottom texture V |
| rotation | Rotation of UV |
| bool InfinityCode.uPano.RotatableRectUV.Contain | ( | Vector2 | uv | ) |
Checks the current rect contains this UV
| uv | UV |
| Vector2 InfinityCode.uPano.RotatableRectUV.GetUVBilinear | ( | float | rx, |
| float | ry | ||
| ) |
Returns UV at normalized coordinates for this rect
| rx | Relative X (0-1) |
| ry | Relative Y (0-1) |
| Vector3 InfinityCode.uPano.RotatableRectUV.GetWorldPosition | ( | Vector2 | uv, |
| CubeSide | cubeSide | ||
| ) |
Converts UV to Unity World Position on the side of the cube with the size (2, 2, 2)
| uv | UV |
| cubeSide | Side of the cube |
| void InfinityCode.uPano.RotatableRectUV.SetUVToArray | ( | Vector2[] | uv, |
| int | index | ||
| ) |
Sets UV values in the array
| uv | Array of UV values |
| index | Start index |
| float InfinityCode.uPano.RotatableRectUV.bottom |
Bottom texture V
| float InfinityCode.uPano.RotatableRectUV.left |
Left texture U
| float InfinityCode.uPano.RotatableRectUV.right |
Right texture U
| Rotation InfinityCode.uPano.RotatableRectUV.rotation |
Rotation of UV
| float InfinityCode.uPano.RotatableRectUV.top |
Top texture V
|
staticget |
UV whole texture
|
get |
Height of texture V
|
getset |
Get and set side by index
| index | Index of side |
|
get |
Width of texture U