FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
math_utils.h File Reference
#include "occtools.h"
#include <utility>
#include <gp_Ax3.hxx>
#include <gp_Vec.hxx>
#include <gp_Trsf.hxx>
#include <TopAbs_Orientation.hxx>

Go to the source code of this file.

Classes

class  occ::MathUtils
 Collection of tools for the Math toolkit. More...
 

Namespaces

 occ
 

Functions

const gp_Pnt2d occ::origin2d (0, 0)
 
const gp_Dir2d occ::xDir2d (1, 0)
 
const gp_Dir2d occ::yDir2d (0, 1)
 
const gp_Pnt occ::origin3d (0, 0, 0)
 
const gp_Dir occ::xDir3d (1, 0, 0)
 
const gp_Dir occ::yDir3d (0, 1, 0)
 
const gp_Dir occ::zDir3d (0, 0, 1)
 
OCCTOOLS_EXPORT gp_Vec operator- (const gp_Pnt &p1, const gp_Pnt &p2)
 
OCCTOOLS_EXPORT gp_Pnt operator- (const gp_Pnt &p, const gp_Vec &v)
 
OCCTOOLS_EXPORT gp_Pnt operator+ (const gp_Pnt &p, const gp_Vec &v)
 
template<typename TEXT_STREAM >
TEXT_STREAM & operator<< (TEXT_STREAM &ts, const gp_Pnt &p)
 Print (dump) in the text stream ts the point p. More...
 
template<typename TEXT_STREAM >
TEXT_STREAM & operator<< (TEXT_STREAM &ts, const gp_Vec &v)
 Print (dump) in the text stream ts the vector v. More...
 
template<typename TEXT_STREAM >
TEXT_STREAM & operator<< (TEXT_STREAM &ts, const gp_Dir &d)
 Print (dump) in the text stream ts the direction d. More...
 

Function Documentation

OCCTOOLS_EXPORT gp_Pnt operator+ ( const gp_Pnt &  p,
const gp_Vec &  v 
)
OCCTOOLS_EXPORT gp_Vec operator- ( const gp_Pnt &  p1,
const gp_Pnt &  p2 
)
OCCTOOLS_EXPORT gp_Pnt operator- ( const gp_Pnt &  p,
const gp_Vec &  v 
)
template<typename TEXT_STREAM >
TEXT_STREAM & operator<< ( TEXT_STREAM &  ts,
const gp_Pnt &  p 
)

Print (dump) in the text stream ts the point p.

template<typename TEXT_STREAM >
TEXT_STREAM & operator<< ( TEXT_STREAM &  ts,
const gp_Vec &  v 
)

Print (dump) in the text stream ts the vector v.

template<typename TEXT_STREAM >
TEXT_STREAM & operator<< ( TEXT_STREAM &  ts,
const gp_Dir &  d 
)

Print (dump) in the text stream ts the direction d.