|
Shapes 3D
3.0
|
Public Member Functions | |
| UV () | |
| UV (float u, float v) | |
| void | set (float u, float v) |
| void | set (UV uv) |
| UV | copy () |
| String | toString () |
Public Attributes | |
| float | u |
| float | v |
Simple class to hold texture coordinates.
Only used by Cone class and Mesh2DCoreWithCaps.EndCap classes to hold 'circular' coordinates on a rectangular image.
| shapes3d.utils.UV.UV | ( | ) |
Create a UV object with coordinates [0,0]
| shapes3d.utils.UV.UV | ( | float | u, |
| float | v | ||
| ) |
Create a UV object with user defined coordinates
| u | the horizontal coordinate |
| v | the vertical coordinate |
| UV shapes3d.utils.UV.copy | ( | ) |
Get a deep copy (new instance) of the object.
| void shapes3d.utils.UV.set | ( | float | u, |
| float | v | ||
| ) |
Set the texture coordinates
| u | the horizontal coordinate |
| v | the vertical coordinate |
| void shapes3d.utils.UV.set | ( | UV | uv | ) |
Set the texture coordinates from an existing UV object.
| uv | copy the uv coordinates from here |
| String shapes3d.utils.UV.toString | ( | ) |
Creates a string representing UV coordinates stored in the object.