use fixed point sqrt, cos, sin