Home » Developing U++ » UppHub » Scatter: Propose to add new methods
Re: Scatter: Propose to add new methods [message #28585 is a reply to message #28581] |
Wed, 08 September 2010 07:46 |
|
It is perfect!
koldo wrote on Wed, 08 September 2010 00:27 | Hello Ion
You read my mind . I like them.
And this?:
double Scatter::GetXByPoint(const int x){
return (x-GetH_Border())*GetXRange()/(GetSize().cx-2*GetH_Border()-1)+GetXMin();
}
double Scatter::GetYByPoint(const int y){
return (GetSize().cy-GetV_Border()-y-1)*GetYRange()/(GetSize().cy-2*GetV_Border()-GetTitleFont().GetHeight()-1)+GetYMin();
}
double Scatter::GetY2ByPoint(const int y){
return (GetSize().cy-GetV_Border()-y-1)*GetY2Range()/(GetSize().cy-2*GetV_Border()-GetTitleFont().GetHeight()-1)+GetYMin2();
}
double Scatter::GetXPointByValue(const double x){
return x-GetXMin())/GetXRange()*(GetSize().cx-2*GetH_Border()-1)+GetH_Border();
}
double Scatter::GetYPointByValue(const double y){
return (GetSize().cy-GetV_Border()-1)-(y-GetYMin())/GetYRange()*(GetSize().cy-2*GetV_Border()-GetTitleFont().GetHeight()-1);
}
|
|
|
|
Goto Forum:
Current Time: Thu May 09 08:41:51 CEST 2024
Total time taken to generate the page: 0.02707 seconds
|