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