FEMSuite
Public Member Functions | List of all members
CartesianVector Class Reference

This class defines a spherical or polar vector More...

#include <CartesianVector.h>

Inheritance diagram for CartesianVector:
Inheritance graph
[legend]
Collaboration diagram for CartesianVector:
Collaboration graph
[legend]

Public Member Functions

void Construct (Point< Spatial > pF, const Point< Spatial > &p0)
 Constructs the vector from two given points More...
 
Point CalculateTarget (const Point<> &center)
 Calculates the target of this vector based on a center More...
 
CartesianVector ToUnitVector () const
 
Returns
A unit vector corresponding to this vector

 
CartesianVector ToNormal () const
 
Returns
A vector normal to this polar vector

 
PolarVector ToPolar () const
 
Returns
A Point corresponing to this vector in cartesian form.

 
Spatial Dot (const CartesianVector &other) const
 Calculates the dot product of this vector into another vector More...
 
CartesianVector Cross (const CartesianVector &vectorB) const
 Calculates the cross product (A x B), where this vector is vector A. More...
 
 CartesianVector (const Spatial x, const Spatial y, const Spatial z)
 
 CartesianVector (const Point<> &pF, const Point<> &p0)
 
 CartesianVector (const DimensionArray< Spatial > &a)
 
- Public Member Functions inherited from Point< Spatial >
Spatial GetX () const
 
void SetX (const Spatialx)
 
Spatial GetY () const
 
void SetY (const Spatialy)
 
Spatial GetZ () const
 
void SetZ (const Spatialz)
 
void Set (const Spatialx, const Spatialy, const Spatialz)
 
Spatial operator[] (const int i) const
 
Spatial & operator[] (const int i)
 
Spatial DistanceTo (const Point< Spatial > &other) const
 
size_t GetSize () const
 
Point< Spatial > Abs () const
 
Point< Spatial > Round (const unsigned char places=ROUND_DECIMAL_DEF) const
 
std::string ToString () const
 
 Point (const Spatialx, const Spatialy, const Spatialz)
 
 Point (const Spatialx, const Spatialy)
 
 Point (const std::string &str)
 
 Point (const DimensionArray< Spatial > &a)
 

Additional Inherited Members

- Protected Attributes inherited from Point< Spatial >
DimensionArray< Spatial > m_Values
 

Detailed Description

This class defines a spherical or polar vector

Member Function Documentation

Point CartesianVector::CalculateTarget ( const Point<> &  center)

Calculates the target of this vector based on a center

Parameters
centerCenter point of this parameter
void CartesianVector::Construct ( Point< Spatial >  pF,
const Point< Spatial > &  p0 
)

Constructs the vector from two given points

CartesianVector CartesianVector::Cross ( const CartesianVector vectorB) const

Calculates the cross product (A x B), where this vector is vector A.

Spatial CartesianVector::Dot ( const CartesianVector other) const

Calculates the dot product of this vector into another vector


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