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

Simplify Transform Interface

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None

      Description

      The current o.a.c.geometry.core.Transform interface should be simplified to only contain the apply(Point) method (possibly extending java.util.UnaryOperator<Point>. The Hyperplane and SubHyperplane interfaces should include transform(Transform) methods that apply the transform and return new instances. This will allow each Hyperplane and SubHyperplane implementation to transform itself in whatever method is best for that particular implementation and will make it much easier to create transforms.

       

      The AffineTransformMatrix?D and QuaternionRotation classes should also be modified to implement Transform.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mattjuntunen Matt Juntunen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: