Logo ROOT   6.14/05
Reference Guide
TPadUserAxis.cxx
Go to the documentation of this file.
1 /// \file TPadUserAxis.cxx
2 /// \ingroup Gpad ROOT7
3 /// \author Axel Naumann <axel@cern.ch>
4 /// \date 2017-08-14
5 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6 /// is welcome!
7 
8 #include <ROOT/TPadUserAxis.hxx>
9 
10 // pin vtable
12 {
13 }
14 
17 {
18  return (usercoord.fVal - GetBegin()) / GetSensibleDenominator();
19 }
A normalized coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the TPad...
Definition: TPadLength.hxx:75
double GetSensibleDenominator() const
For (pos-min)/(max-min) calculations, return a sensible, div-by-0 protected denominator.
A user coordinate, as defined by the EUserCoordSystem parameter of the TPad.
Definition: TPadLength.hxx:90
TPadLength::Normal ToNormal(const TPadLength::User &usercoord) const override
Convert user coordinates to normal coordinates.