16 #ifndef ossimDpt3d_HEADER 17 #define ossimDpt3d_HEADER 35 ossimDpt3d(
const double &aX=0,
const double &aY=0,
const double &aZ=0)
36 :
x(aX),
y(aY), z(aZ) {}
46 :
x(pt[0]),
y(pt[1]), z(pt[2]) {}
50 return ( (
x == rhs.
x) &&
56 return ( (
x != rhs.
x) ||
71 double length()
const {
return std::sqrt(
x*
x +
y*
y + z*z); }
83 {
x += p.
x;
y += p.
y; z += p.
z;
return *
this; }
85 {
x -= p.
x;
y -= p.
y; z -= p.
z;
return *
this; }
95 void operator /=(
double value)
101 void operator *=(
double value)
109 return (
x*src.
x +
y*src.
y + z*src.
z);
141 void toPoint(
const std::string& s);
bool operator!=(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
ossimDpt3d(const ossimColumnVector3d &pt)
double nan()
Method to return ieee floating point double precision NAN.
ossimDpt3d operator-(const ossimDpt3d &p) const
ossimRationalNumber operator*(ossim_int32 i, ossimRationalNumber &r)
ostream & operator<<(ostream &out, const ossimAxes &axes)
const ossimDpt3d & operator-=(const ossimDpt3d &p)
unsigned int ossim_uint32
bool operator==(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
const ossimDpt3d & operator+=(const ossimDpt3d &p)
ossimDpt3d operator*(const double &d) const
ossimDpt3d(const double &aX=0, const double &aY=0, const double &aZ=0)
ossimDpt3d operator/(const double &d) const
std::basic_ostream< char > ostream
Base class for char output streams.
ossimDpt3d operator+(const ossimDpt3d &p) const
bool isnan(const float &v)
isnan Test for floating point Not A Number (NAN) value.