Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.utils.UV Class Reference

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
 

Detailed Description

Simple class to hold texture coordinates.
Only used by Cone class and Mesh2DCoreWithCaps.EndCap classes to hold 'circular' coordinates on a rectangular image.

Author
Peter Lager

Constructor & Destructor Documentation

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

Parameters
uthe horizontal coordinate
vthe vertical coordinate

Member Function Documentation

UV shapes3d.utils.UV.copy ( )

Get a deep copy (new instance) of the object.

Returns
the deep copy
void shapes3d.utils.UV.set ( float  u,
float  v 
)

Set the texture coordinates

Parameters
uthe horizontal coordinate
vthe vertical coordinate
void shapes3d.utils.UV.set ( UV  uv)

Set the texture coordinates from an existing UV object.

Parameters
uvcopy the uv coordinates from here
String shapes3d.utils.UV.toString ( )

Creates a string representing UV coordinates stored in the object.


The documentation for this class was generated from the following file: