Well if you're passing the start and end angles of an existing arc, have you asked yourself what those angles are ALREADY in relation to?
What I think you will have to do is express those angles in relation to the reference vector you are constructing. So, for instance, if your ref vector is from centre point to startpoint, then your start angle would be 0...yes?