public float getPositionX ( int vertex ) { if ( ! hasPositions ( ) ) { throw new IllegalStateException ( "mesh has no positions" ) ; } checkVertexIndexBounds ( vertex ) ; return m_vertices . getFloat ( vertex * 3 * SIZEOF_FLOAT ) ; }
Returns the x - coordinate of a vertex position .