Refactor SVGMarkerData
This CL reworks the core of SVGMarkerData so that it first extracts the "features" of the current segment/PathElement, and then uses those features to determine the orientation. The state of SVGMarkerData is also changed from two pairs of points to two vectors, since this is the representation that's actually used by CurrentAngle(). It should also be a better representation when handling of degenerate curves is added. CurrentAngle() is changed to return a 'double', and the clamping previously done in the method is now done by the callers. Additionally The code that computes the bisected angle is split out to a separate function. Bug: 450368 Change-Id: Ic9561cab3bbf9c3f5cbc9f3607cfc9bfe90fea05 Reviewed-on: https://chromium-review.googlesource.com/1193847Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#587220}
Showing
Please register or sign in to comment