Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(396)

Issue 4631068: Handle special angles with care in SkMatrix44

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by vollick
Modified:
13 years, 8 months ago
Reviewers:
reed1, TomH
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

cos and sin aren't quite precise when their results are close to zero. Since this is the common case, I've added special logic to return exactly zero when appropriate.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -7 lines) Patch
M include/utils/SkMatrix44.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M src/utils/SkMatrix44.cpp View 1 2 3 chunks +37 lines, -5 lines 0 comments Download
M tests/Matrix44Test.cpp View 1 2 4 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 8
vollick
14 years, 4 months ago (2011-06-24 15:15:11 UTC) #1
vollick
+TomH
14 years, 4 months ago (2011-06-24 18:01:35 UTC) #2
reed1
I've added a (disabled) version of your new test in rev. 1708 1. What is ...
14 years, 4 months ago (2011-06-24 18:19:32 UTC) #3
TomH
http://codereview.appspot.com/4631068/diff/1004/include/utils/SkMatrix44.h File include/utils/SkMatrix44.h (right): http://codereview.appspot.com/4631068/diff/1004/include/utils/SkMatrix44.h#newcode159 include/utils/SkMatrix44.h:159: void setRotateDegreesAbout(SkMScalar x, SkMScalar y, SkMScalar z, I'm not ...
14 years, 4 months ago (2011-06-24 18:23:22 UTC) #4
TomH
It'd be easier for me to evaluate these kinds of questions if we had a ...
14 years, 4 months ago (2011-06-24 18:25:21 UTC) #5
vollick
> 4. Is it perhaps equivalent (or better) to perform the Almost check inside rectStaysRect? ...
14 years, 4 months ago (2011-06-24 19:40:01 UTC) #6
vollick
On 2011/06/24 18:25:21, TomH wrote: > It'd be easier for me to evaluate these kinds ...
14 years, 4 months ago (2011-06-24 20:15:06 UTC) #7
TomH
13 years, 8 months ago (2012-02-29 15:11:43 UTC) #8
On 2011/06/24 19:40:01, vollick wrote: > > 4. Is it perhaps equivalent (or better) to perform the Almost check inside > rectStaysRect? > Good point. I think that modifying rectStaysRect is a much better approach. I > will abandon this change for now. If this change is abandoned, can you please close the issue?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b