TAPs 0.7.7.3
spt_point3_vector3.h File Reference
#include <cmath>
#include "SPT_Space3.h"
#include "SPT_Matrix3x3.h"
Include dependency graph for spt_point3_vector3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SPtPoint3< T >
class  SPtVector3< T >
class  SPtVector3T< T >

Functions

template<typename T >
SPtPoint3< T > operator+ (const SPtPoint3< T > &p, const SPtVector3< T > &v)
template<typename T >
SPtPoint3< T > operator+ (const SPtVector3< T > &v, const SPtPoint3< T > &p)
template<typename T >
ostream & operator<< (ostream &output, const SPtVector3T< T > &s)

Function Documentation

template<typename T >
SPtPoint3< T > operator+ ( const SPtPoint3< T > &  p,
const SPtVector3< T > &  v 
)

Definition at line 250 of file spt_point3_vector3.h.

References SPtSpace3< T >::GetX(), SPtSpace3< T >::GetY(), SPtSpace3< T >::GetZ(), SPtSpace3< T >::x, SPtSpace3< T >::y, and SPtSpace3< T >::z.

{   return SPtPoint3< T >( p.x + v.GetX(), p.y + v.GetY(), p.z + v.GetZ() );    }

Here is the call graph for this function:

template<typename T >
SPtPoint3< T > operator+ ( const SPtVector3< T > &  v,
const SPtPoint3< T > &  p 
)

Definition at line 255 of file spt_point3_vector3.h.

{   return p + v;   }
template<typename T >
ostream& operator<< ( ostream &  output,
const SPtVector3T< T > &  s 
)

Definition at line 495 of file spt_point3_vector3.h.

{
    output << "(" << s.GetX() << "," << s.GetY() << "," << s.GetZ() << ")";
    return output;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines