summaryrefslogtreecommitdiff
path: root/include/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /include/basegfx
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/vector/b2dvector.hxx4
-rw-r--r--include/basegfx/vector/b2ivector.hxx2
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.