Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CVector Class Reference

#include <GeoPrimitives.H>

Public Member Functions

 CVector ()
 
 CVector (double ix, double iy, double iz=0.0)
 
 CVector (const CPoint &p1, const CPoint &p2)
 
 CVector (const CPoint &p)
 
 CVector (const double *a)
 
 CVector (const CVector &v)
 
CVectorinit (const CPoint &p)
 
CVectorinit (const double *a)
 
CVectorinit (const CVector &v)
 
CVectorinit (double ix, double iy, double iz)
 
CVectorinit (const CPoint &p1, const CPoint &p2)
 
CVectorinit ()
 
double norm () const
 
double mag () const
 
double mag2 () const
 
CVectornormalize ()
 
CVector unit () const
 
double operator* (const CVector &v2) const
 
CVector operator* (double num) const
 
CVectoroperator*= (double num)
 
CVector operator% (const CVector &v2) const
 
CVectorcopy (const CVector &v2)
 
CVectoroperator= (const CVector &v2)
 
CVectoroperator= (const CPoint &p)
 
CVectoroperator%= (const CVector &v2)
 
CVector operator+ (const CVector &v2) const
 
CVector operator- (const CVector &v2) const
 
CVectoroperator+= (const CVector &v2)
 
CVectoroperator+= (const CPoint &p)
 
CVectoroperator-= (const CVector &v2)
 
double & x ()
 
double x () const
 
CVectorx (double i)
 
double & y ()
 
double y () const
 
CVectory (double i)
 
double & z ()
 
double z () const
 
CVectorz (double i)
 
const double & operator[] (unsigned int i) const
 
double & operator[] (unsigned int i)
 
bool operator== (const CVector &v) const
 
bool operator< (const CVector &v) const
 
bool operator> (const CVector &v) const
 
bool operator<= (const CVector &v) const
 
bool operator>= (const CVector &v) const
 

Protected Attributes

double V [3]
 

Friends

CVector operator* (double, const CVector &)
 
std::ostream & operator<< (std::ostream &, const CVector &)
 
std::istream & operator>> (std::istream &, CVector &)
 

Detailed Description

Definition at line 204 of file GeoPrimitives.H.

Constructor & Destructor Documentation

CVector ( )
inline

Definition at line 211 of file GeoPrimitives.H.

References CVector::V.

212  {
213  V[0] = V[1] = V[2] = 0.;
214  };
CVector ( double  ix,
double  iy,
double  iz = 0.0 
)
inline

Definition at line 215 of file GeoPrimitives.H.

References CVector::V.

216  {
217  V[0] = ix;
218  V[1] = iy;
219  V[2] = iz;
220  };
CVector ( const CPoint p1,
const CPoint p2 
)
inline

Definition at line 221 of file GeoPrimitives.H.

References p1, CVector::V, CVector::x(), CVector::y(), and CVector::z().

222  {
223  V[0] = (p2 - p1).x();
224  V[1] = (p2 - p1).y();
225  V[2] = (p2 - p1).z();
226  };
NT p1

Here is the call graph for this function:

CVector ( const CPoint p)
inline

Definition at line 227 of file GeoPrimitives.H.

References CVector::V, CPoint::x(), CPoint::y(), and CPoint::z().

228  {
229  V[0] = p.x();
230  V[1] = p.y();
231  V[2] = p.z();
232  };

Here is the call graph for this function:

CVector ( const double *  a)
inline

Definition at line 233 of file GeoPrimitives.H.

References CVector::V.

234  {
235  V[0] = a[0];
236  V[1] = a[1];
237  V[2] = a[2];
238  };
CVector ( const CVector v)
inline

Definition at line 239 of file GeoPrimitives.H.

References CVector::V.

240  {
241  V[0] = v.V[0];
242  V[1] = v.V[1];
243  V[2] = v.V[2];
244  };
*********************************************************************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
Definition: roccomf90.h:20

Member Function Documentation

CVector& copy ( const CVector v2)
inline

Definition at line 340 of file GeoPrimitives.H.

References CVector::V.

Referenced by CVector::operator%=(), CVector::operator-=(), and CVector::operator=().

341  {
342  V[0] = v2.V[0];
343  V[1] = v2.V[1];
344  V[2] = v2.V[2];
345  return(*this);
346  };

Here is the caller graph for this function:

CVector& init ( const CPoint p)
inline

Definition at line 245 of file GeoPrimitives.H.

References CVector::V.

Referenced by main(), Mesh::GenericElement::shapef_jacobian_at(), and GeoPrim::Transpose().

246  {
247  V[0] = p[0];
248  V[1] = p[1];
249  V[2] = p[2];
250  return(*this);
251  };

Here is the caller graph for this function:

CVector& init ( const double *  a)
inline

Definition at line 252 of file GeoPrimitives.H.

References CVector::V.

253  {
254  V[0] = a[0];
255  V[1] = a[1];
256  V[2] = a[2];
257  return(*this);
258  };
CVector& init ( const CVector v)
inline

Definition at line 259 of file GeoPrimitives.H.

References CVector::V.

260  {
261  V[0] = v[0];
262  V[1] = v[1];
263  V[2] = v[2];
264  return(*this);
265  };
*********************************************************************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
Definition: roccomf90.h:20
CVector& init ( double  ix,
double  iy,
double  iz 
)
inline

Definition at line 266 of file GeoPrimitives.H.

References CVector::V.

267  {
268  V[0] = ix;
269  V[1] = iy;
270  V[2] = iz;
271  return(*this);
272  };
CVector& init ( const CPoint p1,
const CPoint p2 
)
inline

Definition at line 273 of file GeoPrimitives.H.

References p1, CVector::V, CVector::x(), CVector::y(), and CVector::z().

274  {
275  V[0] = (p2 - p1).x();
276  V[1] = (p2 - p1).y();
277  V[2] = (p2 - p1).z();
278  return(*this);
279  };
NT p1

Here is the call graph for this function:

CVector& init ( )
inline

Definition at line 280 of file GeoPrimitives.H.

References CVector::V.

281  {
282  V[0] = V[1] = V[2] = 0.0;
283  return(*this);
284  };
double mag ( void  ) const
inline

Definition at line 289 of file GeoPrimitives.H.

References CVector::norm().

Referenced by GeoPrim::Distance(), and main().

290  {
291  return (norm());
292  };
double norm() const

Here is the call graph for this function:

Here is the caller graph for this function:

double mag2 ( ) const
inline

Definition at line 293 of file GeoPrimitives.H.

References CVector::V.

Referenced by GeoPrim::Distance(), and splitquadface().

294  {
295  return ((V[0]*V[0])+(V[1]*V[1])+(V[2]*V[2]));
296  };

Here is the caller graph for this function:

double norm ( ) const
inline

Definition at line 285 of file GeoPrimitives.H.

References sqrt(), and CVector::V.

Referenced by CLineSegment::length(), CVector::mag(), CVector::normalize(), CVector::operator<(), CVector::operator>(), and CVector::unit().

286  {
287  return(sqrt((V[0] * V[0]) + (V[1] * V[1]) + (V[2] * V[2])));
288  };
double sqrt(double d)
Definition: double.h:73

Here is the call graph for this function:

Here is the caller graph for this function:

CVector& normalize ( )
inline

Definition at line 297 of file GeoPrimitives.H.

References n, CVector::norm(), and CVector::V.

Referenced by CPlane::CPlane(), CLine::has_point(), and Mesh::GenericCell_2::shapef_jacobian_at().

298  {
299  double n = norm();
300  V[0] /= n;
301  V[1] /= n;
302  V[2] /= n;
303  return(*this);
304  };
double norm() const
const NT & n

Here is the call graph for this function:

Here is the caller graph for this function:

CVector operator% ( const CVector v2) const
inline

Definition at line 332 of file GeoPrimitives.H.

References v, and CVector::V.

333  {
334  CVector v;
335  v.V[0] = ((v2.V[2] * V[1]) - (v2.V[1] * V[2]));
336  v.V[1] = ((v2.V[0] * V[2]) - (v2.V[2] * V[0]));
337  v.V[2] = ((v2.V[1] * V[0]) - (v2.V[0] * V[1]));
338  return(v);
339  };
*********************************************************************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
Definition: roccomf90.h:20
CVector& operator%= ( const CVector v2)
inline

Definition at line 358 of file GeoPrimitives.H.

References CVector::copy().

359  {
360  return(copy((*this)%v2));
361  };
CVector & copy(const CVector &v2)

Here is the call graph for this function:

double operator* ( const CVector v2) const
inline

Definition at line 314 of file GeoPrimitives.H.

References CVector::V.

315  {
316  return((V[0] * v2.V[0]) +
317  (V[1] * v2.V[1]) +
318  (V[2] * v2.V[2]));
319  };
CVector operator* ( double  num) const
inline

Definition at line 320 of file GeoPrimitives.H.

References CVector::V.

321  {
322  CVector rv(num*V[0],num*V[1],num*V[2]);
323  return(rv);
324  };
CVector& operator*= ( double  num)
inline

Definition at line 325 of file GeoPrimitives.H.

References CVector::V.

326  {
327  V[0] *= num;
328  V[1] *= num;
329  V[2] *= num;
330  return(*this);
331  };
CVector operator+ ( const CVector v2) const
inline

Definition at line 362 of file GeoPrimitives.H.

References v, and CVector::V.

363  {
364  CVector v(V[0] + v2.V[0], V[1] + v2.V[1], V[2] + v2.V[2]);
365  return(v);
366  };
*********************************************************************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
Definition: roccomf90.h:20
CVector& operator+= ( const CVector v2)
inline

Definition at line 371 of file GeoPrimitives.H.

References CVector::V.

372  {
373  V[0] += v2.V[0];
374  V[1] += v2.V[1];
375  V[2] += v2.V[2];
376  return(*this);
377  };
CVector& operator+= ( const CPoint p)
inline

Definition at line 378 of file GeoPrimitives.H.

References CVector::V, CPoint::x(), CPoint::y(), and CPoint::z().

379  {
380  V[0] += p.x();
381  V[1] += p.y();
382  V[2] += p.z();
383  return(*this);
384  };

Here is the call graph for this function:

CVector operator- ( const CVector v2) const
inline

Definition at line 367 of file GeoPrimitives.H.

368  {
369  return((*this) + (-1.0 * v2));
370  };
CVector& operator-= ( const CVector v2)
inline

Definition at line 385 of file GeoPrimitives.H.

References CVector::copy().

386  {
387  return(copy((*this) - v2));
388  };
CVector & copy(const CVector &v2)

Here is the call graph for this function:

bool operator< ( const CVector v) const
inline

Definition at line 444 of file GeoPrimitives.H.

References CVector::norm().

445  {
446  return (norm() < v.norm());
447  };
double norm() const
*********************************************************************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
Definition: roccomf90.h:20

Here is the call graph for this function:

bool operator<= ( const CVector v) const
inline

Definition at line 452 of file GeoPrimitives.H.

453  {
454  return ( (*this < v) ||
455  (*this == v));
456  };
*********************************************************************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
Definition: roccomf90.h:20
CVector& operator= ( const CVector v2)
inline

Definition at line 347 of file GeoPrimitives.H.

References CVector::copy().

348  {
349  return(copy(v2));
350  };
CVector & copy(const CVector &v2)

Here is the call graph for this function:

CVector& operator= ( const CPoint p)
inline

Definition at line 351 of file GeoPrimitives.H.

References CVector::V, CPoint::x(), CPoint::y(), and CPoint::z().

352  {
353  V[0] = p.x();
354  V[1] = p.y();
355  V[2] = p.z();
356  return(*this);
357  };

Here is the call graph for this function:

bool operator== ( const CVector v) const
inline

Definition at line 438 of file GeoPrimitives.H.

References GeoPrim::TOL, and CVector::V.

439  {
440  return( (fabs(V[0] - v.V[0]) < TOL) &&
441  (fabs(V[1] - v.V[1]) < TOL) &&
442  (fabs(V[2] - v.V[2]) < TOL) );
443  };
*********************************************************************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
Definition: roccomf90.h:20
const double TOL
Definition: GeoPrimitives.H:17
bool operator> ( const CVector v) const
inline

Definition at line 448 of file GeoPrimitives.H.

References CVector::norm().

449  {
450  return (norm() > v.norm());
451  };
double norm() const
*********************************************************************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
Definition: roccomf90.h:20

Here is the call graph for this function:

bool operator>= ( const CVector v) const
inline

Definition at line 457 of file GeoPrimitives.H.

458  {
459  return ( (*this > v) ||
460  (*this == v) );
461  };
*********************************************************************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
Definition: roccomf90.h:20
const double& operator[] ( unsigned int  i) const
inline

Definition at line 428 of file GeoPrimitives.H.

References CVector::V.

429  {
430  if(i > 2) i = 0;
431  return(V[i]);
432  };
blockLoc i
Definition: read.cpp:79
double& operator[] ( unsigned int  i)
inline

Definition at line 433 of file GeoPrimitives.H.

References CVector::V.

434  {
435  if(i > 2) i = 0;
436  return(V[i]);
437  };
blockLoc i
Definition: read.cpp:79
CVector unit ( ) const
inline

Definition at line 305 of file GeoPrimitives.H.

References n, CVector::norm(), v, and CVector::V.

Referenced by CLine::has_point(), and CPlane::operator==().

306  {
307  CVector v(*this);
308  double n = norm();
309  v.V[0] /= n;
310  v.V[1] /= n;
311  v.V[2] /= n;
312  return(v);
313  };
double norm() const
*********************************************************************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
Definition: roccomf90.h:20
const NT & n

Here is the call graph for this function:

Here is the caller graph for this function:

double x ( ) const
inline

Definition at line 393 of file GeoPrimitives.H.

References CVector::V.

394  {
395  return(V[0]);
396  };
CVector& x ( double  i)
inline

Definition at line 397 of file GeoPrimitives.H.

References i, and CVector::V.

398  {
399  V[0] = i;
400  return(*this);
401  };
blockLoc i
Definition: read.cpp:79
double y ( ) const
inline

Definition at line 406 of file GeoPrimitives.H.

References CVector::V.

407  {
408  return(V[1]);
409  };
CVector& y ( double  i)
inline

Definition at line 410 of file GeoPrimitives.H.

References i, and CVector::V.

411  {
412  V[1] = i;
413  return(*this);
414  };
blockLoc i
Definition: read.cpp:79
double z ( ) const
inline

Definition at line 419 of file GeoPrimitives.H.

References CVector::V.

420  {
421  return(V[2]);
422  };
CVector& z ( double  i)
inline

Definition at line 423 of file GeoPrimitives.H.

References i, and CVector::V.

424  {
425  V[2] = i;
426  return(*this);
427  };
blockLoc i
Definition: read.cpp:79

Friends And Related Function Documentation

CVector operator* ( double  scalar,
const CVector v 
)
friend

Definition at line 132 of file GeoPrimitives.C.

133  {
134  GeoPrim::CVector rv(v);
135  return(rv *= scalar);
136  }
*********************************************************************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
Definition: roccomf90.h:20
std::ostream& operator<< ( std::ostream &  oS,
const CVector v 
)
friend

Definition at line 90 of file GeoPrimitives.C.

91  {
92  oS << v.x() << " " << v.y() << " " << v.z();
93  return(oS);
94  }
*********************************************************************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
Definition: roccomf90.h:20
std::istream& operator>> ( std::istream &  iS,
GeoPrim::CVector v 
)
friend

Definition at line 97 of file GeoPrimitives.C.

98  {
99  iS >> v[0] >> v[1] >> v[2];
100  return(iS);
101  }

Member Data Documentation


The documentation for this class was generated from the following file: