31 const ::basegfx::B2DVector& rNormal,
34 return nX*rNormal.getX() + nY*rNormal.getY() - nC;
39 const ::basegfx::B2DVector& rMoveDirection,
40 const ::basegfx::B2DRange& rFitTarget )
43 const double nC( rMoveDirection.scalar( io_rStart ) );
47 const double nMaxDistance( std::max(
72 io_rStart += nMaxDistance*rMoveDirection;
73 io_rEnd += nMaxDistance*rMoveDirection;
81 const ::basegfx::B2DRange& rFitTarget )
101 const ::basegfx::B2DVector aNormalTop( aDirectionVertical );
102 const ::basegfx::B2DVector aNormalBottom( -aDirectionVertical );
106 moveLineOutsideRect( io_rLeftTop, io_rRightTop, aNormalTop, rFitTarget );
107 moveLineOutsideRect( io_rLeftBottom, io_rRightBottom, aNormalBottom, rFitTarget );
Base Point class with two double values.
Base Point class with two double values.
B2DVector & normalize()
Normalize this 2D Vector.
void infiniteLineFromParallelogram(::basegfx::B2DPoint &io_rLeftTop, ::basegfx::B2DPoint &io_rLeftBottom, ::basegfx::B2DPoint &io_rRightTop, ::basegfx::B2DPoint &io_rRightBottom, const ::basegfx::B2DRange &rFitTarget)
Expand given parallelogram, such that it extends beyond bound rect in a given direction.