More vector stuff, added UV sampling method