28 double fLen(
scalar(*
this));
37 const double fOne(1.0);
81 const double fTempX( rMat.
get(0,0)*
mfX +
83 const double fTempY( rMat.
get(1,0)*
mfX +
93 double fLenNow(
scalar(*
this));
97 const double fOne(1.0);
101 fLen /= sqrt(fLenNow);
113 const double fValA(rVecA.
getX() * rVecB.
getY());
114 const double fValB(rVecA.
getY() * rVecB.
getX());
141 return aPerpendicular;
148 const double aTemp(-aPerpendicular.
getY());
149 aPerpendicular.
setY(aPerpendicular.
getX());
150 aPerpendicular.
setX(aTemp);
151 return aPerpendicular;
174 if(
areParallel(rBackVector, rForwardVector) && rBackVector.
scalar(rForwardVector) < 0.0)
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const
static BASEGFX_DLLPUBLIC const B2DTuple & getEmptyTuple()
Base Point class with two double values.
double angle(const B2DVector &rVec) const
Calculate the Angle with another 2D Vector.
B2DVector & normalize()
Normalize this 2D Vector.
double scalar(const B2DVector &rVec) const
Calculate the Scalar with another 2D Vector.
B2DVector & operator*=(const B2DVector &rPnt)
*=operator to allow usage from B2DVector, too
B2DVector & setLength(double fLen)
Set the length of this 2D Vector.
double getLength() const
Calculate the length of this 2D Vector.
static const B2DVector & getEmptyVector()
TYPE getX() const
Get X-Coordinate of 2D Tuple.
void setY(TYPE fY)
Set Y-Coordinate of 2D Tuple.
TYPE getY() const
Get Y-Coordinate of 2D Tuple.
void setX(TYPE fX)
Set X-Coordinate of 2D Tuple.
B2VectorContinuity
Descriptor for the mathematical continuity of two 2D Vectors.
@ C1
mathematically negative oriented
@ C2
mathematically neutral, thus parallel
bool areParallel(const B2DVector &rVecA, const B2DVector &rVecB)
Test two vectors which need not to be normalized for parallelism.
B2VectorOrientation getOrientation(const B2DVector &rVecA, const B2DVector &rVecB)
Calculate the orientation to another 2D Vector.
B2VectorOrientation
Descriptor for the mathematical orientations of two 2D Vectors.
@ Positive
mathematically positive oriented
@ Neutral
mathematically neutral, thus parallel
@ Negative
mathematically negative oriented
B2DVector getNormalizedPerpendicular(const B2DVector &rVec)
Calculate a perpendicular 2D Vector to the given one, normalize the given one as preparation.
B2VectorContinuity getContinuity(const B2DVector &rBackVector, const B2DVector &rForwardVector)
Test continuity between given vectors.
B2DVector getPerpendicular(const B2DVector &rNormalizedVec)
Calculate a perpendicular 2D Vector to the given one.
B2DPoint operator*(const ::basegfx::B2DHomMatrix &rMat, const B2DPoint &rPoint)