mirror of
https://github.com/openglobus/openglobus.git
synced 2025-12-08 19:25:27 +00:00
cleanup.2
This commit is contained in:
parent
16e4990676
commit
8e2539e698
@ -992,14 +992,14 @@ class Camera {
|
||||
*/
|
||||
public projectedSize(p: Vec3, r: number): number {
|
||||
|
||||
|
||||
// if (this.isOrthographic) {
|
||||
// const m = this.frustums[0].projectionMatrix._m;
|
||||
// const orthoScale = this._height * m[5] * 0.5;
|
||||
// return r * orthoScale;
|
||||
// }
|
||||
|
||||
return Math.atan(r / this.eye.distance(p)) * this._projSizeConst;
|
||||
// @todo: cleanup
|
||||
if (this.isOrthographic) {
|
||||
const m = this.frustums[0].projectionMatrix._m;
|
||||
const orthoScale = this._height * m[5] * 0.5;
|
||||
return r * orthoScale;
|
||||
} else {
|
||||
return Math.atan(r / this.eye.distance(p)) * this._projSizeConst;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user