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