109 double fLen(scalar(*
this));
110 if((0.0 == fLen) || (1.0 == fLen))
121 double fLen((
mfX *
mfX) + (mfZ * mfZ));
122 if((0.0 == fLen) || (1.0 == fLen))
133 double fLen((
mfY *
mfY) + (mfZ * mfZ));
134 if((0.0 == fLen) || (1.0 == fLen))
146 double fLenNow(scalar(*
this));
150 const double fOne(1.0);
152 if(!::basegfx::fTools::equal(fOne, fLenNow))
154 fLen /= sqrt(fLenNow);
#define BASEGFX_DLLPUBLIC
Base class for all Points/Vectors with three double values.
static const B3DTuple & getEmptyTuple()
Base Point class with three double values.
double getLength() const
Calculate the length of this 3D Vector.
B3DVector & setLength(double fLen)
Set the length of this 3D Vector.
B3DVector & operator=(const ::basegfx::B3DTuple &rVec)
assignment operator to allow assigning the results of B3DTuple calculations
B3DVector(const ::basegfx::B3DTuple &rTuple)
constructor with tuple to allow copy-constructing from B3DTuple-based classes
B3DVector(double fX, double fY, double fZ)
Create a 3D Vector.
B3DVector & operator*=(double t)
*=operator to allow usage from B3DVector, too
double getXZLength() const
Calculate the length in the XZ-Plane for this 3D Vector.
double getYZLength() const
Calculate the length in the YZ-Plane for this 3D Vector.
static const B3DVector & getEmptyVector()
B3DVector()
Create a 3D Vector.
B3DVector & operator*=(const B3DHomMatrix &rMat)
Transform vector by given transformation matrix.
double scalar(const B3DVector &rVec) const
Calculate the Scalar product.
B3DVector & operator*=(const B3DVector &rPnt)
*=operator to allow usage from B3DVector, too
TYPE getX() const
Get X-Coordinate of 3D Tuple.
TYPE getZ() const
Get Z-Coordinate of 3D Tuple.
TYPE getY() const
Get Y-Coordinate of 3D Tuple.
bool areParallel(const B2DVector &rVecA, const B2DVector &rVecB)
Test two vectors which need not to be normalized for parallelism.
B3DVector cross(const B3DVector &rVecA, const B3DVector &rVecB)
Calculate the Cross Product of two 3D Vectors.
B2DVector getPerpendicular(const B2DVector &rNormalizedVec)
Calculate a perpendicular 2D Vector to the given one.
B2DPoint operator*(const ::basegfx::B2DHomMatrix &rMat, const B2DPoint &rPoint)
bool normalize(sal_uInt16 &rDay, sal_uInt16 &rMonth, sal_Int16 &rYear)