Closed Bug 728661 Opened 12 years ago Closed 12 years ago

Remove CalcVectorAngle and use AngleOfVector instead.

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file, 2 obsolete files)

We can replace uses of CalcVectorAngle in SVGPathData.cpp with AngleOfVector,
as comments in the file suggest.
Attachment #598646 - Flags: review?(jwatt)
Assignee: nobody → cam
Status: NEW → ASSIGNED
Since you're changing this... Wouldn't it also be better if AngleOfVector took a const reference rather than passing by value?
Yes, good idea.
Attachment #598649 - Flags: review?(jwatt)
Attachment #598648 - Attachment is obsolete: true
Comment on attachment 598646 [details] [diff] [review]
Remove CalcVectorAngle and use AngleOfVector instead.

Seems like this is going to turn one "conversion from double to float looses precision" warning into lots of similar warnings at all the existing AngleOfVector call points. It may be better to have a second function AngleOfVectorAsFloat that does |return float(AngleOfVector(v))|.
Attachment #598646 - Flags: review?(jwatt) → review+
Attachment #598649 - Flags: review?(jwatt) → review+
OK, I'll look into silencing the warnings with something like that.
Attachment #598646 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/766fdf473acd
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Depends on: 769115
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: