Bug 1305201 - Have BasePoint::Length return a Coord instead of a raw type. r=botond
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 26 Sep 2016 15:34:36 -0400
changeset 315262 0b7bf04ea3473df47cb569b5d9dc2b0aba05585e
parent 315261 99b2cfda036e2b5d8576c6bd700982a88504ddbd
child 315263 dcb05d2949bb574a3c6a747995602d40864c01f0
push id32575
push userkgupta@mozilla.com
push dateTue, 27 Sep 2016 01:00:00 +0000
treeherderautoland@0b7bf04ea347 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs1305201
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1305201 - Have BasePoint::Length return a Coord instead of a raw type. r=botond MozReview-Commit-ID: 3MJmnQ866pA
gfx/2d/BasePoint.h
--- a/gfx/2d/BasePoint.h
+++ b/gfx/2d/BasePoint.h
@@ -73,17 +73,17 @@ struct BasePoint {
   Sub operator-() const {
     return Sub(-x, -y);
   }
 
   T DotProduct(const Sub& aPoint) const {
       return x * aPoint.x + y * aPoint.y;
   }
 
-  T Length() const {
+  Coord Length() const {
     return hypot(x, y);
   }
 
   T LengthSquare() const {
     return x * x + y * y;
   }
 
   // Round() is *not* rounding to nearest integer if the values are negative.