#include <ossimColumnVector3d.h>
Definition at line 25 of file ossimColumnVector3d.h.
◆ ossimColumnVector3d() [1/3]
ossimColumnVector3d::ossimColumnVector3d |
( |
| ) |
|
|
inline |
◆ ossimColumnVector3d() [2/3]
ossimColumnVector3d::ossimColumnVector3d |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z = 0 |
|
) |
| |
|
inline |
◆ ossimColumnVector3d() [3/3]
ossimColumnVector3d::ossimColumnVector3d |
( |
const NEWMAT::ColumnVector & |
rhs | ) |
|
|
inlineexplicit |
◆ cross()
◆ dot()
◆ magnitude()
double ossimColumnVector3d::magnitude |
( |
| ) |
const |
|
inline |
◆ norm2()
double ossimColumnVector3d::norm2 |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator*()
◆ operator+()
◆ operator+=()
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator-=()
◆ operator/()
◆ operator/=()
◆ operator=()
◆ operator==()
◆ operator[]() [1/2]
double& ossimColumnVector3d::operator[] |
( |
int |
index | ) |
|
|
inline |
◆ operator[]() [2/2]
const double& ossimColumnVector3d::operator[] |
( |
int |
index | ) |
const |
|
inline |
◆ toPoint()
void ossimColumnVector3d::toPoint |
( |
const std::string & |
s | ) |
|
Initializes this point from string.
Expected format:
( 0.0000000, 0.0000000, 0.00000000 ) --—x-— --—y-— ---—z-—
- Parameters
-
s | String to initialize from. |
Definition at line 54 of file ossimColumnVector3d.cpp.
References ossimString::contains(), data, ossimString::erase(), ossimString::find(), ossim::nan(), and ossimString::toFloat64().
Referenced by ossimEcefVector::toPoint(), and ossimEcefPoint::toPoint().
90 std::string::size_type pos = os.
find(
'(');
91 if (pos != std::string::npos)
117 is.get(buf, SZ,
',');
146 is.get(buf, SZ,
')');
double nan()
Method to return ieee floating point double precision NAN.
bool contains(char aChar) const
std::string::iterator erase(std::string::iterator p)
Erases the character at position p.
ossim_float64 toFloat64() const
std::basic_istringstream< char > istringstream
Class for char input memory streams.
std::string::size_type find(const std::string &s, std::string::size_type pos=0) const
Searches for s as a substring of *this, beginning at character pos of *this.
◆ toString()
To string method.
- Parameters
-
precision | Output floating point precision. |
- Returns
- ossimString representing point.
Output format: ( 0.0000000, 0.0000000, 0.00000000 ) --—x-— --—y-— ---—z-—
Definition at line 17 of file ossimColumnVector3d.cpp.
References data, and ossim::isnan().
Referenced by ossimEcefVector::toString(), and ossimEcefPoint::toString().
20 os << setprecision(precision);
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
bool isnan(const float &v)
isnan Test for floating point Not A Number (NAN) value.
◆ unit()
◆ xAligned()
◆ yAligned()
◆ zAligned()
◆ operator* [1/2]
◆ operator* [2/2]
Multiplies column vector times matrix. Note: If "lhs" is not a 3x3 that's an error and a blank column vector is returned.
Definition at line 93 of file ossimColumnVector3d.h.
96 if ((lhs.Ncols() == 3) && (lhs.Nrows() == 3))
99 (lhs[1][0]*rhs[0] + lhs[1][1]*rhs[1] + lhs[1][2]*rhs[2]),
100 (lhs[2][0]*rhs[0] + lhs[2][1]*rhs[1] + lhs[2][2]*rhs[2]));
102 else if((lhs.Ncols() == 4) && (lhs.Nrows() == 4))
104 return ossimColumnVector3d( (lhs[0][0]*rhs[0] + lhs[0][1]*rhs[1] + lhs[0][2]*rhs[2] + lhs[0][3]) ,
105 (lhs[1][0]*rhs[0] + lhs[1][1]*rhs[1] + lhs[1][2]*rhs[2] + lhs[1][3]) ,
106 (lhs[2][0]*rhs[0] + lhs[2][1]*rhs[1] + lhs[2][2]*rhs[2] + lhs[2][3]));
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
◆ operator<<
Definition at line 72 of file ossimColumnVector3d.h.
74 return out << setiosflags(ios::fixed) << setprecision(15)
75 << v[0] <<
" " << v[1] <<
" "
◆ data
double ossimColumnVector3d::data[3] |
|
private |
The documentation for this class was generated from the following files: