StelProjectorClasses.hpp   StelProjectorClasses.hpp 
skipping to change at line 224 skipping to change at line 224
float deltaZoom(float fov) const; float deltaZoom(float fov) const;
protected: protected:
virtual bool hasDiscontinuity() const {return true;} virtual bool hasDiscontinuity() const {return true;}
virtual bool intersectViewportDiscontinuityInternal(const Vec3d& p1, const Vec3d& p2) const {return p1[0]*p2[0]<0 && !(p1[2]<0 && p2[2]<0);} virtual bool intersectViewportDiscontinuityInternal(const Vec3d& p1, const Vec3d& p2) const {return p1[0]*p2[0]<0 && !(p1[2]<0 && p2[2]<0);}
virtual bool intersectViewportDiscontinuityInternal(const Vec3d& cap N, double capD) const virtual bool intersectViewportDiscontinuityInternal(const Vec3d& cap N, double capD) const
{ {
static const SphericalCap cap1(1,0,0); static const SphericalCap cap1(1,0,0);
static const SphericalCap cap2(-1,0,0); static const SphericalCap cap2(-1,0,0);
static const SphericalCap cap3(0,0,-1); static const SphericalCap cap3(0,0,-1);
SphericalCap cap(capN, capD); SphericalCap cap(capN, capD);
return cap.intersects(cap1) && cap.intersects(cap2) && cap.i ntersects(cap2); return cap.intersects(cap1) && cap.intersects(cap2) && cap.i ntersects(cap3);
} }
}; };
class StelProjectorCylinder : public StelProjector class StelProjectorCylinder : public StelProjector
{ {
public: public:
StelProjectorCylinder(ModelViewTranformP func) : StelProjector(func) {;} StelProjectorCylinder(ModelViewTranformP func) : StelProjector(func) {;}
virtual QString getNameI18() const; virtual QString getNameI18() const;
virtual QString getDescriptionI18() const; virtual QString getDescriptionI18() const;
virtual float getMaxFov() const {return 175.f * 4.f/3.f;} // assume aspect ration of 4/3 for getting a full 360 degree horizon virtual float getMaxFov() const {return 175.f * 4.f/3.f;} // assume aspect ration of 4/3 for getting a full 360 degree horizon
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/