16#ifndef ROOT7_RPadExtent
17#define ROOT7_RPadExtent
25namespace Experimental {
void InitializeAttrFromString(const std::string &name, const std::string &attrStrVal, RPadExtent &val)
Initialize a RPadExtent from a style string.
Namespace for new ROOT classes and functions.
A 2D (horizontal and vertical) combination of RPadLengths.
void SetFromAttrString(const std::string &name, const std::string &attrStrVal)
Initialize a RPadHorizVert from a style string.
RPadHorizVert(const RPadLength &horiz, const RPadLength &vert)
RPadHorizVert(const std::array< RPadLength, 2 > &hv)
RPadLength fHoriz
Horizontal position.
RPadLength fVert
Vertical position.
A scale factor (separate factors for horizontal and vertical) for scaling a RPadLength.
double fHoriz
Horizontal scale factor.
double fVert
Vertical scale factor.
An extent / size (horizontal and vertical) in a RPad.
friend RPadExtent operator-(RPadExtent lhs, const RPadExtent &rhs)
Subtract two RPadExtents.
RPadExtent & operator*=(const ScaleFactor &scale)
Scale a RPadHorizVert horizonally and vertically.
RPadExtent & operator-=(const RPadExtent &rhs)
Subtract a RPadExtent.
RPadExtent & operator+=(const RPadExtent &rhs)
Add a RPadExtent.
friend RPadExtent operator+(RPadExtent lhs, const RPadExtent &rhs)
Add two RPadExtents.