Analytical field calculations of skewed magnets