summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/point/b2dhompoint.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/inc/basegfx/point/b2dhompoint.hxx')
-rw-r--r--basegfx/inc/basegfx/point/b2dhompoint.hxx72
1 files changed, 36 insertions, 36 deletions
diff --git a/basegfx/inc/basegfx/point/b2dhompoint.hxx b/basegfx/inc/basegfx/point/b2dhompoint.hxx
index 2736edaedde8..bccea8d783e7 100644
--- a/basegfx/inc/basegfx/point/b2dhompoint.hxx
+++ b/basegfx/inc/basegfx/point/b2dhompoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,18 +50,18 @@ namespace basegfx
{
protected:
/// This member contains the coordinate part of the point
- ::basegfx::B2DTuple maTuple;
+ ::basegfx::B2DTuple maTuple;
/// This Member holds the homogenous part of the point
- double mfW;
+ double mfW;
- /** Test if this homogen point does have a homogenous part
+ /** Test if this homogen point does have a homogenous part
@return Returns true if this point has no homogenous part
*/
bool implIsHomogenized() const;
-
- /** Remove homogenous part of this Point
+
+ /** Remove homogenous part of this Point
This method does necessary calculations to remove
the evtl. homogenous part of this Point. This may
@@ -69,7 +69,7 @@ namespace basegfx
*/
void implHomogenize();
- /** Test and on demand remove homogenous part
+ /** Test and on demand remove homogenous part
This method tests if this Point does have a homogenous part
and then evtl. takes actions to remove that part.
@@ -81,87 +81,87 @@ namespace basegfx
*/
void implTestAndHomogenize() const;
- public:
- /** Create a homogen point
+ public:
+ /** Create a homogen point
The point is initialized to (0.0, 0.0)
*/
- B2DHomPoint()
- : maTuple(),
+ B2DHomPoint()
+ : maTuple(),
mfW(1.0)
{}
- /** Create a homogen point
+ /** Create a homogen point
@param fX
This parameter is used to initialize the X-coordinate
of the Point. The homogenous part is initialized to 1.0.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the Point. The homogenous part is initialized to 1.0.
*/
- B2DHomPoint(double fX, double fY)
- : maTuple(fX, fY),
+ B2DHomPoint(double fX, double fY)
+ : maTuple(fX, fY),
mfW(1.0)
{}
- /** Create a copy of a 2D Point
+ /** Create a copy of a 2D Point
@param rVec
- The 2D point which will be copied. The homogenous part
+ The 2D point which will be copied. The homogenous part
is initialized to 1.0.
*/
- B2DHomPoint(const B2DPoint& rVec)
- : maTuple(rVec),
+ B2DHomPoint(const B2DPoint& rVec)
+ : maTuple(rVec),
mfW(1.0)
{}
- /** Create a copy of a homogen point
+ /** Create a copy of a homogen point
@param rVec
- The homogen point which will be copied. The homogenous part
+ The homogen point which will be copied. The homogenous part
is copied, too.
*/
- B2DHomPoint(const B2DHomPoint& rVec)
- : maTuple(rVec.maTuple.getX(), rVec.maTuple.getY()),
+ B2DHomPoint(const B2DHomPoint& rVec)
+ : maTuple(rVec.maTuple.getX(), rVec.maTuple.getY()),
mfW(rVec.mfW)
{}
- ~B2DHomPoint()
+ ~B2DHomPoint()
{}
- /** Get a 2D point from this homogenous point
+ /** Get a 2D point from this homogenous point
This method normalizes this homogen point if necessary and
returns the corresponding 2D point for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
B2DPoint getB2DPoint() const;
- /** Get X-coordinate
+ /** Get X-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding X-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getX() const;
- /** Get Y-coordinate
+ /** Get Y-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding Y-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getY() const;
- /** Set X-coordinate of the homogen point.
+ /** Set X-coordinate of the homogen point.
This method sets the X-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -171,7 +171,7 @@ namespace basegfx
*/
void setX(double fX);
- /** Set Y-coordinate of the homogen point.
+ /** Set Y-coordinate of the homogen point.
This method sets the Y-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -187,7 +187,7 @@ namespace basegfx
B2DHomPoint& operator+=( const B2DHomPoint& rPnt );
B2DHomPoint& operator-=( const B2DHomPoint& rPnt );
-
+
B2DHomPoint& operator*=(double t);
B2DHomPoint& operator*=( const B2DHomMatrix& rMat );
@@ -195,11 +195,11 @@ namespace basegfx
B2DHomPoint& operator/=(double t);
B2DHomPoint& operator-(void);
-
+
bool operator==( const B2DHomPoint& rPnt ) const;
bool operator!=( const B2DHomPoint& rPnt ) const;
-
+
B2DHomPoint& operator=( const B2DHomPoint& rPnt );
};
@@ -215,7 +215,7 @@ namespace basegfx
B2DHomPoint interpolate(B2DHomPoint& rOld1, B2DHomPoint& rOld2, double t);
B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2);
-
+
B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2, B2DHomPoint& rOld3);
B2DHomPoint operator+(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB);