Vec Class Reference

#include <Vec.h>

List of all members.

Public Member Functions

 Vec (double a0, double a1, double a2)
 Vec ()
double length () const
double distance (const Vec &other) const
double dotProduct (const Vec &other) const
Vec crossProduct (const Vec &other) const
void unitLength ()
 Rescales vector so it has unit length.
void orthogonalAxes (Vec &u, Vec &v) const
 Generates vectors u and v to form a mutually orthogonal system.
double a0 () const
double a1 () const
double a2 () const
Vec pointOnLine (const Vec &end, double k)
bool operator== (const Vec &other) const
Vec operator- (const Vec &other) const
Vec operator+ (const Vec &other) const
Vec operator* (const double &other) const

Constructor & Destructor Documentation

Vec::Vec ( double  a0,
double  a1,
double  a2 
)
Vec::Vec (  )  [inline]

Member Function Documentation

double Vec::a0 (  )  const [inline]
double Vec::a1 (  )  const [inline]
double Vec::a2 (  )  const [inline]
Vec Vec::crossProduct ( const Vec other  )  const

References Vec().

Referenced by orthogonalAxes(), and testVec().

Here is the call graph for this function:

double Vec::distance ( const Vec other  )  const
double Vec::dotProduct ( const Vec other  )  const

Referenced by testVec().

double Vec::length (  )  const

Referenced by orthogonalAxes(), and unitLength().

Vec Vec::operator* ( const double &  other  )  const

References Vec().

Here is the call graph for this function:

Vec Vec::operator+ ( const Vec other  )  const

References Vec().

Here is the call graph for this function:

Vec Vec::operator- ( const Vec other  )  const

References Vec().

Here is the call graph for this function:

bool Vec::operator== ( const Vec other  )  const

References doubleEq().

Here is the call graph for this function:

void Vec::orthogonalAxes ( Vec u,
Vec v 
) const

Generates vectors u and v to form a mutually orthogonal system.

References crossProduct(), doubleApprox(), doubleEq(), length(), unitLength(), and Vec().

Referenced by testVec().

Here is the call graph for this function:

Vec Vec::pointOnLine ( const Vec end,
double  k 
)

Returns a point on the line from self to 'end', a fraction k from the 'self'. r = self + k.(end - self)

References Vec().

Referenced by CylBase::nearest().

Here is the call graph for this function:

void Vec::unitLength (  ) 

Rescales vector so it has unit length.

References length().

Referenced by orthogonalAxes().

Here is the call graph for this function:


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

Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1