tag:github.com,2008:https://github.com/servo/euclid/releases Release notes from euclid 2022-04-04T11:39:10Z tag:github.com,2008:Repository/4592409/v0.22.7 2022-04-04T11:39:10Z v0.22.7 <p>Version 0.22.7</p> adtennant tag:github.com,2008:Repository/4592409/v0.22.6 2021-05-31T14:12:55Z v0.22.6 <p>Version 0.22.6.</p> nical tag:github.com,2008:Repository/4592409/v0.22.5 2021-05-28T15:02:59Z v0.22.5 <p>Version 0.22.5.</p> nical tag:github.com,2008:Repository/4592409/v0.22.4 2021-05-18T14:29:19Z v0.22.4 <p>Version 0.22.4.</p> nical tag:github.com,2008:Repository/4592409/v0.22.3 2021-04-06T17:10:07Z v0.22.3 <p>Version 0.22.3</p> nical tag:github.com,2008:Repository/4592409/v0.22.2 2021-02-24T16:35:12Z v0.22.2: Auto merge of #476 - nical:component_mul, r=kvark <p>Add component-wise multiplication of 2d and 3d vectors</p> <p>Fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="813784565" data-permission-text="Title is private" data-url="https://github.com/servo/euclid/issues/475" data-hovercard-type="issue" data-hovercard-url="/servo/euclid/issues/475/hovercard" href="https://github.com/servo/euclid/issues/475">#475</a></p> bors-servo tag:github.com,2008:Repository/4592409/v0.22.1 2020-08-21T14:09:00Z v0.22.1: Auto merge of #466 - nical:perspective-doc, r=kvark <p>Improve the documentation of Transform3D::perspective</p> <p>There was a bit of confusion about the formulation of the perspective transform in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="683167488" data-permission-text="Title is private" data-url="https://github.com/servo/euclid/issues/465" data-hovercard-type="pull_request" data-hovercard-url="/servo/euclid/pull/465/hovercard" href="https://github.com/servo/euclid/pull/465">#465</a>. This clarifies things.</p> bors-servo tag:github.com,2008:Repository/4592409/v0.22.0 2020-07-29T21:02:40Z v0.22.0: Auto merge of #463 - nical:intersect-non-empty, r=nical <p>(breaking change) Make intersection return Option</p> <p>Replaces <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="667195804" data-permission-text="Title is private" data-url="https://github.com/servo/euclid/issues/462" data-hovercard-type="pull_request" data-hovercard-url="/servo/euclid/pull/462/hovercard" href="https://github.com/servo/euclid/pull/462">#462</a></p> <p>As I go through the webrender update I realize that returning <code>Option&lt;NonEmpty&lt;Self&gt;&gt;</code> adds way more friction than I anticipated. Pretty much all call sites have to be worked around in different ways. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="667195804" data-permission-text="Title is private" data-url="https://github.com/servo/euclid/issues/462" data-hovercard-type="pull_request" data-hovercard-url="/servo/euclid/pull/462/hovercard" href="https://github.com/servo/euclid/pull/462">#462</a> helps for at least a good half of the call sites, but there are many other patterns, and I am not running into cases where NonEmpty is adding value, because we end up having to deal with storing something when the intersection is empty (the way webrender's code is shaped).</p> <p>I'm very woriied that <code>intersection</code> is just going to be a pain to use by default, with NonEmpty providing more friction than value, so considering 0.21 is just out, I would rather make a early 0.22 now before a significant part of downstream users have had time to update to 0.21, and get rid of the thorn before we are stuck with it.</p> <p>Note that for cases where <code>Option&lt;NonEmpty&lt;Box2D&gt;&gt;</code> would have been desirable, we can still write `b.intersection_unchecked(b2).to_non_empty(), which is not too inconvenient even if not the default.</p> bors-servo tag:github.com,2008:Repository/4592409/v0.21.0 2020-07-28T15:20:11Z v0.21.0 <ul> <li>Fixed backward 3d transform rotation.</li> <li>Clarified the row/column terminology.</li> <li>Many smaller API changes.</li> </ul> nical tag:github.com,2008:Repository/4592409/v0.20.14 2020-07-08T13:34:57Z v0.20.14: Auto merge of #444 - nical:nan-empty, r=jrmuizel <p>Return true in the presence of NaN in is_empty_or_negative.</p> <p>Fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="653137414" data-permission-text="Title is private" data-url="https://github.com/servo/euclid/issues/443" data-hovercard-type="issue" data-hovercard-url="/servo/euclid/issues/443/hovercard" href="https://github.com/servo/euclid/issues/443">#443</a> in which rect intersections don't behave as expected if there is a NaN (is_empty_or_negative returned false causing us to return broken intersection rect).<br> Beyond intersections, we use <code>is_empty_or_negative</code> to differentiate between rects with positive non-zero area and everything else which we treat as empty or invalid-in-the-sense-that-it-doesnt-contribute-to-rendering rectangles. NaN should be part of this cathegory.</p> <p>for euclid 0.21 I plan to remove <code>is_empty_or_negative</code> and simply implement <code>is_empty</code> everywhere with the semantics of "every thing that is not a valid non-zero area rectangle" since that's what's useful. It's a breaking unfortunately but there's a number them motivating a 0.21 bump.</p> <p>See also <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1650990" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=1650990</a></p> bors-servo