Math quatfromto