use quaternions to calculate cube points