summaryrefslogtreecommitdiffstats
path: root/cc/math_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/math_util.h')
-rw-r--r--cc/math_util.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/math_util.h b/cc/math_util.h
index 7d22c6c..1caf659 100644
--- a/cc/math_util.h
+++ b/cc/math_util.h
@@ -18,12 +18,11 @@ namespace gfx {
class QuadF;
class Rect;
class RectF;
+class Vector2dF;
}
namespace cc {
-class FloatSize;
-
struct HomogeneousCoordinate {
HomogeneousCoordinate(double newX, double newY, double newZ, double newW)
: x(newX)
@@ -104,10 +103,10 @@ public:
// Returns the smallest angle between the given two vectors in degrees. Neither vector is
// assumed to be normalized.
- static float smallestAngleBetweenVectors(const FloatSize&, const FloatSize&);
+ static float smallestAngleBetweenVectors(gfx::Vector2dF, gfx::Vector2dF);
// Projects the |source| vector onto |destination|. Neither vector is assumed to be normalized.
- static FloatSize projectVector(const FloatSize& source, const FloatSize& destination);
+ static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF destination);
};
} // namespace cc