14 #ifndef ossimDpt_HEADER 15 #define ossimDpt_HEADER 63 {
return !(*
this == pt ); }
92 {
x += p.
x;
y += p.
y;
return *
this; }
94 {
x -= p.
x;
y -= p.
y;
return *
this; }
105 {
x*=d;
y*=d;
return *
this; }
109 {
return (
x*pt.
x+
y*pt.
y); }
137 void toPoint(
const std::string& s);
159 double mean()
const {
return (
x +
y) / 2.0; }
164 union {
double x;
double samp;
double u;
double lon;};
165 union {
double y;
double line;
double v;
double lat;};
ossimDpt operator+(const ossimDpt &p) const
const ossimDpt & operator*=(const double &d)
double mean() const
Returns the average of x and y.
bool almostEqual(T x, T y, T tolerance=FLT_EPSILON)
double nan()
Method to return ieee floating point double precision NAN.
ossimDpt(double anX, double aY)
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
bool operator!=(const ossimDpt &pt) const
const ossimDpt & operator+=(const ossimDpt &p)
ostream & operator<<(ostream &out, const ossimAxes &axes)
unsigned int ossim_uint32
ossimDpt operator/(const double &d) const
ossimDpt operator*(const double &d) const
ossimDpt operator-(const ossimDpt &p) const
std::basic_istream< char > istream
Base class for char input streams.
ossim_float64 operator*(const ossimDpt &pt) const
Dot product.
bool operator==(const ossimDpt &pt) const
const ossimDpt & operator-=(const ossimDpt &p)
OSSIM_DLL void operator>>(ossimIStream &in, ossimOStream &out)
std::basic_ostream< char > ostream
Base class for char output streams.
bool isnan(const float &v)
isnan Test for floating point Not A Number (NAN) value.