Abstract
We present an efficient algorithm for testing whether or not a filled rectangle and a filled ellipse intersect. The algorithm requires at most two evaluations of the quadratic polynomial that defines the ellipse and the execution of a few simple arithmetic expressions. The convexity and monotonicity properties of this polynomial are the main tools for the design of the algorithm.
Similar content being viewed by others
References
Drabek, K.: Plane curves and constructions, In: K. Rektorys (ed.), Survey of Applicable Mathematics, MIT Press, Mass., 1969, pp. 150–204.
Faux, I. D. and Pratt, M. J.: Computational Geometry for Design and Manufacture, Wiley, New York, 1979.
Forsythe, G. E.: Pitfalls in computation, or why the math book isn't enough, Amer. Math. Monthly 70 (1970), 931–956.
Foley, J. D., van Dam, A., Feiner, S. K. and Hughes, J.: Computer Graphics, Principles and Practice, Addison-Wesley, Reading, Mass, 1990.
Hill, K. J.: Matrix-based ellipse geometry, In: Alan W. Paeth (ed.), Graphics Gems V, Academic Press, New York, 1995, pp. 73–77.
Kriegel, H.-P., Schmidt, T. and Seidl, T.: Three dimensions similarity search by shape approximation, In: M. Scholl and A. Voisard (eds), Advances in Spatial Databases, Lecture Notes in Comput. Sci. 1262, Springer-Verlag, Berlin, 1997, pp. 11–28.
Klatke, R., Kulisch, U., Wiethoff, A., Lawo, C. and Rauch, M.: C-XSC, Springer, Berlin, 1993.
Levin, J.: A parametric algorithm for drawing pictures of solid objects composed of quadric surfaces, CACM 19 (1976), 555–563.
Moore, R. E.: Interval Analysis, Prentice-Hall, Englewood Cliffs, 1996.
Press, W. H., Flannery, B. P., Teukolsky, S. A. and Wetterling, W. T.: Numerical Recipes in C, Cambridge Univ. Press, Cambridge, 1988.
Ratschek, H. and Rokne, J.: Computer Methods for the Range of Functions, Ellis Horwood, Chichester, 1994.
Ratschek, H. and Rokne, J.: Exact computation of the sign of a finite sum, Appl.Maths. Comput. 99 (1999), 99–127.
Rodgers, D. F. and Adams, J. A.: Mathematical Elements for Computer Graphics, McGraw-Hill, New York, 1990.
Taligent: http://hpsalo.cern.ch/TaligentDocs/TaligentOnline/ DocumentRoot/1.0/Docs/classes/ TGEllipse.html, Internet, 1997.
Zeid, I.: CAD/CAM Theory and Practice, McGraw-Hill, New York, 1991.
Zhou, Y. and Suri, S.: Analysis of a bounding box heuristic for object intersection, J. ACM 46 (1999), 833–857.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Ratschek, H., Rokne, J. A Two-Dimensional Ellipse–Rectangle Intersection Test. Journal of Mathematical Modelling and Algorithms 1, 243–255 (2002). https://doi.org/10.1023/A:1021642308852
Issue Date:
DOI: https://doi.org/10.1023/A:1021642308852