Go to the documentation of this file.
52 #ifndef __PCL_GnomonicProjection_h
53 #define __PCL_GnomonicProjection_h
89 SinCos( m_dec0, m_sinDec0, m_cosDec0 );
101 m_dec0 =
Rad( dec0 );
102 SinCos( m_dec0, m_sinDec0, m_cosDec0 );
145 bool Direct(
DPoint& pW,
const DPoint& pRD )
const noexcept
override;
150 bool Inverse(
DPoint& pRD,
const DPoint& pW )
const noexcept
override;
155 bool CheckBrokenLine(
const DPoint& cp1,
const DPoint& cp2 )
const noexcept
override
158 return Direct( gp1, cp1 ) && Direct( gp2, cp2 ) &&
159 (gp1.
x - gp2.
x)*(gp1.
x - gp2.
x) + (gp1.
y - gp2.
y)*(gp1.
y - gp2.
y) < 45*45;
185 #endif // __PCL_GnomonicProjection_h
bool Project(DPoint &pW, const DPoint &pN) const noexcept override
IsoString ProjCode() const override
A generic point in the two-dimensional space.
IsoString Name() const override
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
bool Unproject(DPoint &pN, const DPoint &pW) const noexcept override
IsoString Identifier() const override
GnomonicProjection(double ra0, double dec0)
void SinCos(T x, T &sx, T &cx) noexcept
Gnomonic projection system.
GnomonicProjection(double scale, double ra0, double dec0)
component x
Abscissa (horizontal, or X-axis coordinate).
ProjectionBase * Clone() const override
component y
Ordinate (vertical, or Y-axis coordinate).
constexpr T Rad(T x) noexcept
Base class of all projection systems.