15 tpose[0].
init(matrix[0].
x(),matrix[1].
x(),matrix[2].
x());
16 tpose[1].
init(matrix[0].
y(),matrix[1].
y(),matrix[2].
y());
17 tpose[2].
init(matrix[0].
z(),matrix[1].
z(),matrix[2].
z());
18 matrix[0].
init(tpose[0]);
19 matrix[1].
init(tpose[1]);
20 matrix[2].
init(tpose[2]);
26 tpose[0][0] = matrix[0].
x();
27 tpose[1][0] = matrix[0].
y();
28 tpose[2][0] = matrix[0].
z();
29 tpose[0][1] = matrix[1].
x();
30 tpose[1][1] = matrix[1].
y();
31 tpose[2][1] = matrix[1].
z();
37 double u = (((p.
x() - l.
p.
x())*l.
v.
x() + (p.
y() - l.
p.
y())*l.
v.
y() +
47 double u = (((p.
x() - l.
p.
x())*l.
v.
x() + (p.
y() - l.
p.
y())*l.
v.
y() +
57 oS << b.
P1() <<
" " << b.
P2();
64 oS << p.
x() <<
" " << p.
y() <<
" " << p.
z();
71 iS >> p[0] >> p[1] >> p[2];
92 oS << v.
x() <<
" " << v.
y() <<
" " << v.
z();
99 iS >> v[0] >> v[1] >> v[2];
106 oS << v.
x() <<
" " << v.
y() <<
" " << v.
z();
113 iS >> v[0] >> v[1] >> v[2];
129 return(rv *= scalar);
135 return(rv *= scalar);
/brief Cartesian 3 Vector
Geometric Primitives interface.
const CPoint & P2() const
void int int REAL REAL * y
std::istream & operator>>(std::istream &iS, GeoPrim::CPoint &p)
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
void int int int REAL REAL REAL * z
CVector & init(const CPoint &p)
std::ostream & operator<<(std::ostream &oS, const GeoPrim::CBox &b)
void Transpose(CVector matrix[])
GeoPrim::CPoint operator*(double scalar, const GeoPrim::CPoint &p)
double Distance(const CPoint &p, const CLine &l)
void Transpose_2x3(CVector matrix[], double tpose[][2])
const CPoint & P1() const