LibreOffice Module basegfx (master) 1
|
#include <Tuple2D.hxx>
Public Member Functions | |
Tuple2D (TYPE x, TYPE y) | |
Create a 2D Tuple. More... | |
double | get (Axis2D eAxis) |
void | set (Axis2D eAxis, TYPE fValue) |
TYPE | getX () const |
Get X-Coordinate of 2D Tuple. More... | |
TYPE | getY () const |
Get Y-Coordinate of 2D Tuple. More... | |
void | setX (TYPE fX) |
Set X-Coordinate of 2D Tuple. More... | |
void | setY (TYPE fY) |
Set Y-Coordinate of 2D Tuple. More... | |
void | adjustX (TYPE fX) |
Adjust X-Coordinate of 2D Tuple. More... | |
void | adjustY (TYPE fY) |
Adjust Y-Coordinate of 2D Tuple. More... | |
template<typename T = TYPE, std::enable_if_t< std::is_integral_v< T >, int > = 0> | |
bool | equal (const Tuple2D< TYPE > &rTup) const |
template<typename T = TYPE, std::enable_if_t< std::is_floating_point_v< T >, int > = 0> | |
bool | equal (const Tuple2D< TYPE > &rTup) const |
template<typename T = TYPE, std::enable_if_t< std::is_integral_v< T >, int > = 0> | |
bool | equalZero () const |
template<typename T = TYPE, std::enable_if_t< std::is_floating_point_v< T >, int > = 0> | |
bool | equalZero () const |
Tuple2D< TYPE > & | operator+= (const Tuple2D< TYPE > &rTup) |
Tuple2D< TYPE > & | operator-= (const Tuple2D< TYPE > &rTup) |
Tuple2D< TYPE > & | operator/= (const Tuple2D< TYPE > &rTup) |
Tuple2D< TYPE > & | operator*= (const Tuple2D< TYPE > &rTup) |
Tuple2D< TYPE > & | operator*= (TYPE t) |
Tuple2D< TYPE > & | operator/= (TYPE t) |
Tuple2D< TYPE > | operator- (void) const |
bool | operator== (const Tuple2D< TYPE > &rTup) const |
bool | operator!= (const Tuple2D< TYPE > &rTup) const |
Protected Attributes | |
union { | |
struct { | |
TYPE mnX | |
TYPE mnY | |
} | |
struct { | |
TYPE mfX | |
TYPE mfY | |
} | |
}; | |
Definition at line 18 of file Tuple2D.hxx.
|
inline |
Create a 2D Tuple.
@param nX This parameter is used to initialize the X-coordinate of the 2D Tuple. @param nY This parameter is used to initialize the Y-coordinate of the 2D Tuple.
Definition at line 46 of file Tuple2D.hxx.
|
inline |
Adjust X-Coordinate of 2D Tuple.
Definition at line 75 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnX.
|
inline |
Adjust Y-Coordinate of 2D Tuple.
Definition at line 78 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnY.
|
inline |
Definition at line 83 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::utils::addPointsAtCuts(), basegfx::utils::clipPolygonOnParallelAxis(), basegfx::utils::clipPolyPolygonOnPolyPolygon(), basegfx::utils::createLineTrapezoidFromEdge(), basegfx::B2DCubicBezier::equal(), basegfx::utils::exportToSvgD(), basegfx::utils::findCut(), basegfx::utils::getSmallestDistancePointToEdge(), basegfx::utils::implHandleFirstLast(), basegfx::utils::importFromSvgD(), basegfx::utils::isPointOnLine(), basegfx::utils::isPointOnPolygon(), and basegfx::utils::UnoPolygonBezierCoordsToB2DPolygon().
|
inline |
Definition at line 89 of file Tuple2D.hxx.
References basegfx::fTools::equal(), basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
|
inline |
Definition at line 95 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnX, and basegfx::Tuple2D< TYPE >::mnY.
Referenced by basegfx::unotools::UnoPolyPolygon::addPolyPolygon(), basegfx::B2DPolygon::appendBezierSegment(), basegfx::utils::createAreaGeometry(), basegfx::utils::distort(), basegfx::getContinuity(), basegfx::B2DCubicBezier::getControlPolygonLength(), basegfx::B2DCubicBezier::getTangent(), basegfx::utils::getTangentEnteringPoint(), basegfx::utils::getTangentLeavingPoint(), basegfx::utils::isInEpsilonRange(), ImplB2DPolygon::setNextControlVector(), ImplB2DPolygon::setPrevControlVector(), basegfx::B2DCubicBezier::testAndSolveTrivialBezier(), and ImplB2DPolygon::transform().
|
inline |
Definition at line 101 of file Tuple2D.hxx.
References basegfx::fTools::equalZero(), basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
|
inline |
Definition at line 52 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::getX(), basegfx::Tuple2D< TYPE >::getY(), and basegfx::X.
|
inline |
Get X-Coordinate of 2D Tuple.
Definition at line 63 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnX, and TYPE.
Referenced by basegfx::absolute(), basegfx::InterpolatorProvider3D::addInverseTextureInterpolator(), basegfx::InterpolatorProvider3D::addTextureInterpolator(), basegfx::B2DVector::angle(), basegfx::B2DPolygon::appendQuadraticBezierSegment(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), basegfx::areParallel(), basegfx::average(), basegfx::utils::B2DPolygonToUnoPointSequence(), basegfx::utils::B2DPolygonToUnoPolygonBezierCoords(), basegfx::Range2D< TYPE, TRAITS >::clamp(), basegfx::utils::clipPolygonOnParallelAxis(), basegfx::utils::createAreaGeometryForLineStartEnd(), basegfx::utils::createB3DPolygonFromB2DPolygon(), basegfx::utils::createCoordinateSystemTransform(), basegfx::utils::createLineTrapezoidFromEdge(), basegfx::utils::createPolygonFromEllipse(), basegfx::utils::createPolygonFromEllipseSegment(), basegfx::utils::createPolygonFromRect(), basegfx::utils::createPolygonFromUnitEllipseSegment(), basegfx::utils::createRotateAroundPoint(), basegfx::utils::createScaleB2DHomMatrix(), basegfx::utils::createScaleShearXRotateTranslateB2DHomMatrix(), basegfx::utils::createScaleTranslateB2DHomMatrix(), basegfx::utils::createShearXRotateTranslateB2DHomMatrix(), basegfx::utils::createTranslateB2DHomMatrix(), basegfx::createWaveLinePolygon(), basegfx::B2DVector::cross(), basegfx::B2DHomMatrix::decompose(), basegfx::utils::distort(), basegfx::B2IBox::expand(), basegfx::Range2D< TYPE, TRAITS >::expand(), basegfx::utils::exportToSvgD(), basegfx::utils::exportToSvgPoints(), basegfx::utils::findCut(), basegfx::B2DCubicBezier::fround(), basegfx::fround(), basegfx::Tuple2D< TYPE >::get(), basegfx::B2DCubicBezier::getAllExtremumPositions(), basegfx::unotools::UnoPolyPolygon::getBezierSegment(), basegfx::getContinuity(), basegfx::utils::getEllipticalGradientAlpha(), basegfx::getNormalizedPerpendicular(), basegfx::getOrientation(), basegfx::getPerpendicular(), basegfx::utils::getRadialGradientAlpha(), basegfx::utils::getRectangularGradientAlpha(), basegfx::utils::getSignedArea(), basegfx::B2DCubicBezier::getSmallestDistancePointToBezierSegment(), basegfx::utils::getSmallestDistancePointToEdge(), basegfx::utils::getSquareGradientAlpha(), basegfx::Size2D< TYPE >::getWidth(), basegfx::Range2D< TYPE, TRAITS >::grow(), basegfx::utils::importFromSvgD(), basegfx::initEllipticalGradientInfo(), basegfx::initRectGradientInfo(), basegfx::interpolate(), basegfx::utils::isInEpsilonRange(), basegfx::utils::isInside(), basegfx::B2IBox::isInside(), basegfx::Range2D< TYPE, TRAITS >::isInside(), basegfx::utils::isPointOnEdge(), basegfx::utils::isPointOnLine(), basegfx::utils::isRectangle(), basegfx::B2DPoint::operator=(), basegfx::B2DVector::operator=(), basegfx::B2DHomMatrix::scale(), basegfx::utils::scissorLineSegment(), basegfx::utils::snapPointsOfHorizontalOrVerticalEdges(), basegfx::B2DCubicBezier::testAndSolveTrivialBezier(), and basegfx::B2DHomMatrix::translate().
|
inline |
Get Y-Coordinate of 2D Tuple.
Definition at line 66 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnY, and TYPE.
Referenced by basegfx::absolute(), basegfx::InterpolatorProvider3D::addInverseTextureInterpolator(), basegfx::InterpolatorProvider3D::addTextureInterpolator(), basegfx::B2DVector::angle(), basegfx::B2DPolygon::appendQuadraticBezierSegment(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), basegfx::areParallel(), basegfx::average(), basegfx::utils::B2DPolygonToUnoPointSequence(), basegfx::utils::B2DPolygonToUnoPolygonBezierCoords(), basegfx::Range2D< TYPE, TRAITS >::clamp(), basegfx::utils::clipPolygonOnParallelAxis(), basegfx::utils::createAreaGeometryForLineStartEnd(), basegfx::utils::createB3DPolygonFromB2DPolygon(), basegfx::utils::createCoordinateSystemTransform(), basegfx::utils::createLineTrapezoidFromEdge(), basegfx::utils::createPolygonFromEllipse(), basegfx::utils::createPolygonFromEllipseSegment(), basegfx::utils::createPolygonFromUnitEllipseSegment(), basegfx::utils::createRotateAroundPoint(), basegfx::utils::createScaleB2DHomMatrix(), basegfx::utils::createScaleShearXRotateTranslateB2DHomMatrix(), basegfx::utils::createScaleTranslateB2DHomMatrix(), basegfx::utils::createShearXRotateTranslateB2DHomMatrix(), basegfx::utils::createTranslateB2DHomMatrix(), basegfx::B2DVector::cross(), basegfx::B2DHomMatrix::decompose(), basegfx::utils::distort(), basegfx::B2IBox::expand(), basegfx::Range2D< TYPE, TRAITS >::expand(), basegfx::utils::exportToSvgD(), basegfx::utils::exportToSvgPoints(), basegfx::utils::findCut(), basegfx::B2DCubicBezier::fround(), basegfx::fround(), basegfx::Tuple2D< TYPE >::get(), basegfx::B2DCubicBezier::getAllExtremumPositions(), basegfx::utils::getAxialGradientAlpha(), basegfx::unotools::UnoPolyPolygon::getBezierSegment(), basegfx::getContinuity(), basegfx::utils::getEllipticalGradientAlpha(), basegfx::Size2D< TYPE >::getHeight(), basegfx::utils::getLinearGradientAlpha(), basegfx::getNormalizedPerpendicular(), basegfx::getOrientation(), basegfx::getPerpendicular(), basegfx::utils::getRadialGradientAlpha(), basegfx::utils::getRectangularGradientAlpha(), basegfx::utils::getSignedArea(), basegfx::B2DCubicBezier::getSmallestDistancePointToBezierSegment(), basegfx::utils::getSmallestDistancePointToEdge(), basegfx::utils::getSquareGradientAlpha(), basegfx::Range2D< TYPE, TRAITS >::grow(), basegfx::utils::importFromSvgD(), basegfx::initEllipticalGradientInfo(), basegfx::initRectGradientInfo(), basegfx::interpolate(), basegfx::utils::isInEpsilonRange(), basegfx::utils::isInside(), basegfx::B2IBox::isInside(), basegfx::Range2D< TYPE, TRAITS >::isInside(), basegfx::utils::isPointOnEdge(), basegfx::utils::isPointOnLine(), basegfx::utils::isRectangle(), basegfx::B2DPoint::operator=(), basegfx::B2DVector::operator=(), basegfx::B2DHomMatrix::scale(), basegfx::utils::scissorLineSegment(), basegfx::utils::snapPointsOfHorizontalOrVerticalEdges(), basegfx::B2DCubicBezier::testAndSolveTrivialBezier(), and basegfx::B2DHomMatrix::translate().
|
inline |
Definition at line 154 of file Tuple2D.hxx.
Referenced by basegfx::Size2D< TYPE >::operator!=().
|
inline |
Definition at line 129 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::Size2D< TYPE >::operator*=().
|
inline |
Definition at line 136 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, basegfx::Tuple2D< TYPE >::mfY, and t.
|
inline |
Definition at line 108 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::Size2D< TYPE >::operator+=().
|
inline |
Definition at line 150 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::Size2D< TYPE >::operator-().
|
inline |
Definition at line 115 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::Size2D< TYPE >::operator-=().
|
inline |
Definition at line 122 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::Size2D< TYPE >::operator/=().
|
inline |
Definition at line 143 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, basegfx::Tuple2D< TYPE >::mfY, and t.
|
inline |
Definition at line 152 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mfX, and basegfx::Tuple2D< TYPE >::mfY.
Referenced by basegfx::Size2D< TYPE >::operator==().
|
inline |
Definition at line 54 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::setX(), basegfx::Tuple2D< TYPE >::setY(), and basegfx::X.
|
inline |
Set X-Coordinate of 2D Tuple.
Definition at line 69 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnX.
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), basegfx::B2DHomMatrix::decompose(), basegfx::getNormalizedPerpendicular(), basegfx::utils::importFromSvgD(), basegfx::Tuple2D< TYPE >::set(), and basegfx::Size2D< TYPE >::setWidth().
|
inline |
Set Y-Coordinate of 2D Tuple.
Definition at line 72 of file Tuple2D.hxx.
References basegfx::Tuple2D< TYPE >::mnY.
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), basegfx::B2DHomMatrix::decompose(), basegfx::getNormalizedPerpendicular(), basegfx::utils::importFromSvgD(), basegfx::Tuple2D< TYPE >::set(), and basegfx::Size2D< TYPE >::setHeight().
union { ... } basegfx::Tuple2D< TYPE >::@5 |
TYPE basegfx::Tuple2D< TYPE >::mfX |
Definition at line 30 of file Tuple2D.hxx.
Referenced by basegfx::Tuple2D< TYPE >::equal(), basegfx::Tuple2D< TYPE >::equalZero(), basegfx::B2DPoint::operator*=(), basegfx::B2DVector::operator*=(), basegfx::Tuple2D< TYPE >::operator*=(), basegfx::Tuple2D< TYPE >::operator+=(), basegfx::Tuple2D< TYPE >::operator-(), basegfx::Tuple2D< TYPE >::operator-=(), basegfx::Tuple2D< TYPE >::operator/=(), basegfx::Tuple2D< TYPE >::operator==(), and basegfx::B2DVector::scalar().
TYPE basegfx::Tuple2D< TYPE >::mfY |
Definition at line 31 of file Tuple2D.hxx.
Referenced by basegfx::Tuple2D< TYPE >::equal(), basegfx::Tuple2D< TYPE >::equalZero(), basegfx::B2DPoint::operator*=(), basegfx::B2DVector::operator*=(), basegfx::Tuple2D< TYPE >::operator*=(), basegfx::Tuple2D< TYPE >::operator+=(), basegfx::Tuple2D< TYPE >::operator-(), basegfx::Tuple2D< TYPE >::operator-=(), basegfx::Tuple2D< TYPE >::operator/=(), basegfx::Tuple2D< TYPE >::operator==(), and basegfx::B2DVector::scalar().
TYPE basegfx::Tuple2D< TYPE >::mnX |
Definition at line 25 of file Tuple2D.hxx.
Referenced by basegfx::Tuple2D< TYPE >::adjustX(), basegfx::Tuple2D< TYPE >::equalZero(), basegfx::Tuple2D< TYPE >::getX(), basegfx::B2IPoint::operator*=(), basegfx::B2IVector::operator*=(), basegfx::B2I64Tuple::operator=(), basegfx::B2IVector::scalar(), and basegfx::Tuple2D< TYPE >::setX().
TYPE basegfx::Tuple2D< TYPE >::mnY |
Definition at line 26 of file Tuple2D.hxx.
Referenced by basegfx::Tuple2D< TYPE >::adjustY(), basegfx::Tuple2D< TYPE >::equalZero(), basegfx::Tuple2D< TYPE >::getY(), basegfx::B2IPoint::operator*=(), basegfx::B2IVector::operator*=(), basegfx::B2I64Tuple::operator=(), basegfx::B2IVector::scalar(), and basegfx::Tuple2D< TYPE >::setY().