Fix phys2doc/doc2phys for image export
This commit is contained in:
parent
ca6e6abfdc
commit
79e8da1f46
1 changed files with 2 additions and 2 deletions
|
|
@ -99,11 +99,11 @@ namespace gerbolyze {
|
|||
};
|
||||
|
||||
double doc2phys_dist(double dist_doc) {
|
||||
return xx * dist_doc;
|
||||
return dist_doc * sqrt(xx*xx + xy * xy);
|
||||
}
|
||||
|
||||
double phys2doc_dist(double dist_doc) {
|
||||
return xx * dist_doc;
|
||||
return dist_doc / sqrt(xx*xx + xy * xy);
|
||||
}
|
||||
|
||||
d2p doc2phys(const d2p p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue