public float getTexCoordU ( int vertex , int coords ) { if ( ! hasTexCoords ( coords ) ) { throw new IllegalStateException ( "mesh has no texture coordinate set " + coords ) ; } checkVertexIndexBounds ( vertex ) ; /* bound checks for coords are done by java for us */ return m_texcoords [ coords ] . getFloat ( vertex * m_numUVComponents [ coords ] * SIZEOF_FLOAT ) ; }
Returns the u component of a coordinate from a texture coordinate set .