| Summary: | Enchancement for Point (getDifference) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Colin Sharples <ctg> | ||||||
| Component: | GEF Geometry | Assignee: | Alexander Nyßen <nyssen> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | nyssen | ||||||
| Version: | 0.2.0 | ||||||||
| Target Milestone: | 4.0.0 (Neon) M7 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows NT | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
This contribution complies to the Eclipse Foundation Certificate of Origin Created attachment 260873 [details]
Test case for Point.getDifference()
Thanks Colin. Could you please confirm that the second patch complies to the Eclipse Foundation Certificate of Origin as well? Yes, the testcase patch complies to the Eclipse Foundation Certificate of Origin. Sorry, didn't realise that I had to do that for each patch. I will add both patches at the same time in future :-) I released your patches to origin/master. Thanks again for the contribution. Resolving this as fixed for 4.0.0. M7. |
Created attachment 260833 [details] Patch to add getDifference method to Point I would like to propose a minor enhancement to org.eclipse.gef4.geometry.planar.Point. One new method: Point getDifference(Point), which returns the translation required to move this point to the other point. This makes it convenient to calculate a transformation from two input points.