Merge lp://staging/~oif-team/grail/pivot-disambiguation into lp://staging/grail
Proposed by
Chase Douglas
Status: | Merged |
---|---|
Merged at revision: | 158 |
Proposed branch: | lp://staging/~oif-team/grail/pivot-disambiguation |
Merge into: | lp://staging/grail |
Diff against target: |
707 lines (+96/-365) 6 files modified
include/grail.h (+13/-20) include/grail.h.orig (+0/-277) src/grail-frame.c (+65/-52) src/grail-init.c (+0/-2) tools/grail-test-mtdev.c (+2/-3) tools/grail-transform.c (+16/-11) |
To merge this branch: | bzr merge lp://staging/~oif-team/grail/pivot-disambiguation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jussi Pakkanen (community) | Approve | ||
Stephen M. Webb (community) | Approve | ||
Review via email:
|
Description of the change
The main crux of this merge request is to rework the pivot/anchor point calculation for the transformation matrix and other properties of the grail elements. This will hopefully remove any ambiguity around the pivot point. Mathematically, the output is equivalent to before if you take into account the full transformation matrix and center point.
I threw in two niceties: show the pivot point in red on top of any touch points in grail-transform, and removal of an erroneously added file.
To post a comment you must log in.
Lots of code removed. That's always good.
You change the header so this is clearly an API break. I assume that library versions have already been incremented since last release?
Detection against div by zero is done with this: if (div == 0). However floats seldom go to zero due to rounding errors. Maybe something like 'if abs(div) < SOME_THRESHOLD_ DELTA_VALUE' ?
Does the struct now have all info needed for Grip transformations? It would seem to me that these would be rotation_center and center are the transformation center points. Is this correct?