Uploaded image for project: 'Commons Geometry'
  1. Commons Geometry
  2. GEOMETRY-50

Overflow in Vector norm and distance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      In Euclidean Vector classes (Vector2D, Vector3D), norm() and distance() rely on Math.sqrt(), which can overflow if the components of the vectors are large. Instead, they should rely on SafeNorm.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              balsingh Baljit Singh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: