3 character patch for terragear cliff height interpolation
James Hester <jamesrhester@gmail.com>
This commit is contained in:
parent
6807638af1
commit
3e9e87cb8b
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ double TGArray::altitude_from_grid( double lon, double lat ) const {
|
|||
int comp2 = y2-y1;
|
||||
double dotprod = (dx*comp1 + dy*comp2)/sqrt(2);
|
||||
double projlen = sqrt(dx*dx+dy*dy)*dotprod;
|
||||
elev = (z2-z1)*projlen/sqrt(2);
|
||||
elev = z1+(z2-z1)*projlen/sqrt(2);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue