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

Standardize Method Names with commons-numbers

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • None
    • None
    • None

    Description

      There are many general operations that are common between classes in commons-numbers and commons-geometry but that use different method names. The table below captures these discrepancies (at least the ones I've found) and the name that I think we should standardize on.

      commons-numbers commons-geometry suggested standard
      norm() getNorm() norm()
      normSq() getNormSq() normSq()
      inverse() getInverse() inverse()
      multiply(double) scalarMultiply(double) multiply(double)
      dotProduct() dotProduct() dot()
      crossProduct() cross()

       

       Pull request: https://github.com/apache/commons-geometry/pull/18

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mattjuntunen Matt Juntunen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: