Skip to main content
QUICK REVIEW

[Paper Review] Fast exact digital differential analyzer for circle generation

Jan L. Cieśliński, Leonid Moroz|arXiv (Cornell University)|Apr 17, 2013
Advanced Electrical Measurement TechniquesEngineering1 citations
TL;DR

This paper presents a novel two-step digital differential analyzer (DDA) algorithm for exact circle generation using the explicit midpoint rule. By leveraging shifts and additions, it achieves maximal accuracy—exact up to round-off errors—while maintaining computational efficiency, outperforming traditional one-step DDA methods in both accuracy and cost.

ABSTRACT

In the first part of the paper we present a short review of applications of digital differential analyzers (DDA) to generation of circles showing that they can be treated as one-step numerical schemes. In the second part we present and discuss a novel fast algorithm based on a two-step numerical scheme (explicit midpoint rule). Although our algorithm is as cheap as the simplest one-step DDA algoritm (and can be represented in terms of shifts and additions), it generates circles with maximal accuracy, i.e., it is exact up to round-off errors.

Motivation & Objective

  • To develop a computationally efficient and highly accurate method for digital circle generation in computer graphics and numerical control.
  • To overcome the inherent inaccuracy of conventional one-step DDA methods, which produce logarithmic or elliptical spirals due to discretization errors.
  • To design a two-step numerical scheme that preserves the circular trajectory exactly (up to round-off errors) while remaining efficient for real-time applications.
  • To explore the trade-off between computational cost and accuracy by introducing polynomial approximations for the period-preserving parameter δ(h).

Proposed method

  • Formulates circle generation as a two-step explicit midpoint rule discretization of the continuous system dx/dϑ = -y, dy/dϑ = x.
  • Derives a recurrence relation: xn+2 = xn - 2δyn+1, yn+2 = yn + 2δxn+1, where δ is a function of the step size h.
  • Proves that for δ(h) = sin(h), the scheme generates points exactly on the circle x² + y² = r², preserving both trajectory and period.
  • Introduces polynomial approximations of sin(h), such as δ = h - h³/6, to replace costly multiplications with bit shifts and additions.
  • Analyzes stability by showing all eigenvalues lie on the unit circle, ensuring bounded perturbations and long-term numerical stability.
  • Validates the method using symbolic and asymptotic expansions, including series for √(1 - h²) when h = 2⁻ᵐ, enabling efficient fixed-point arithmetic.

Experimental results

Research questions

  • RQ1Can a two-step numerical scheme be designed to generate circles exactly (up to round-off) while maintaining low computational cost?
  • RQ2How can the period of circular motion be preserved in a discrete DDA scheme without requiring expensive trigonometric operations?
  • RQ3What is the optimal polynomial approximation of sin(h) that balances accuracy and efficiency in fixed-point arithmetic?
  • RQ4Why does the Matsushiro-based third-order DDA (a = 1 - h²/2, c = h - h³/8) yield the highest accuracy among third-order polynomial DDA schemes?
  • RQ5To what extent can the use of bit shifts and additions replace multiplications in circle generation algorithms without sacrificing accuracy?

Key findings

  • The proposed two-step DDA based on the explicit midpoint rule generates circles exactly (up to round-off errors) when δ(h) = sin(h), as proven in Theorem 3.6.
  • The scheme (48) with δ(h) = sin(h) preserves both the circular trajectory and the period T = 2πh / arcsin(h), ensuring correct angular velocity.
  • By approximating sin(h) with δ = h - h³/6, the method achieves third-order accuracy and replaces costly multiplications with bit shifts, as shown in equation (51).
  • The algorithm using δ = h - h³/6 is computationally efficient and can be implemented using only shifts and additions, making it suitable for embedded and real-time systems.
  • The eigenvalues of the system matrix lie on the unit circle, ensuring that initial perturbations do not grow, thus guaranteeing long-term stability.
  • The method outperforms all one-step DDA schemes in accuracy, including the best third-order DDA (Matsushiro’s), which still produces a spiral with k ≈ h⁵/128.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.