diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-12 14:06:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-17 10:55:17 +0200 |
commit | 3e82897353e576dc6e3fbf55371fda5a0c3415df (patch) | |
tree | 71c2f03128885000efae1852dccb504f8355c79e /include/basegfx | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/vector/b2dvector.hxx | 4 | ||||
-rw-r--r-- | include/basegfx/vector/b2ivector.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/basegfx/vector/b2dvector.hxx b/include/basegfx/vector/b2dvector.hxx index f5148dbe7718..4b95987ddc89 100644 --- a/include/basegfx/vector/b2dvector.hxx +++ b/include/basegfx/vector/b2dvector.hxx @@ -141,7 +141,7 @@ namespace basegfx @return The Scalar value of the two involved 2D Vectors */ - double scalar( const B2DVector& rVec ) const; + double scalar( const B2DVector& rVec ) const { return((mfX * rVec.mfX) + (mfY * rVec.mfY)); } /** Calculate the length of the cross product with another 2D Vector @@ -158,7 +158,7 @@ namespace basegfx @return The length of the cross product of the two involved 2D Vectors */ - double cross( const B2DVector& rVec ) const; + double cross( const B2DVector& rVec ) const { return(mfX * rVec.getY() - mfY * rVec.getX()); } /** Calculate the Angle with another 2D Vector diff --git a/include/basegfx/vector/b2ivector.hxx b/include/basegfx/vector/b2ivector.hxx index 23eb811becd1..1fdeeb4ea13a 100644 --- a/include/basegfx/vector/b2ivector.hxx +++ b/include/basegfx/vector/b2ivector.hxx @@ -121,7 +121,7 @@ namespace basegfx @return The Scalar value of the two involved 2D Vectors */ - double scalar( const B2IVector& rVec ) const; + double scalar( const B2IVector& rVec ) const { return((mnX * rVec.mnX) + (mnY * rVec.mnY)); } /** Transform vector by given transformation matrix. |