Back to index

salome-smesh  6.5.0
Classes | Typedefs | Functions
Rn.h File Reference
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <gp_Dir.hxx>
#include <iostream>
#include <cmath>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  R2
class  R3
class  R4

Typedefs

typedef char Nom [1+24]
typedef unsigned long int N
typedef long int Z
typedef double R

Functions

template<class T >
Abs (const T &a)
template<class T >
void Echange (T &a, T &b)
template<class T >
Min (const T &a, const T &b)
template<class T >
Max (const T &a, const T &b)
template<class T >
Max (const T &a, const T &b, const T &c)
template<class T >
Min (const T &a, const T &b, const T &c)
template<class T >
Max (const T &a, const T &b, const T &c, const T &d)
template<class T >
Min (const T &a, const T &b, const T &c, const T &d)
R Aire2d (const R2 A, const R2 B, const R2 C)
R Angle2d (R2 P)
R Norme2_2 (const R2 &A)
R Norme2 (const R2 &A)
R NormeInfinie (const R2 &A)
R Norme2_2 (const R3 &A)
R Norme2 (const R3 &A)
R NormeInfinie (const R3 &A)
R Norme2_2 (const R4 &A)
R Norme2 (const R4 &A)
R NormeInfinie (const R4 &A)
R2 XY (R3 P)
R3 Min (R3 P, R3 Q)
R3 Max (R3 P, R3 Q)

Typedef Documentation

typedef unsigned long int N

Definition at line 64 of file Rn.h.

typedef char Nom[1+24]

Definition at line 59 of file Rn.h.

typedef double R

Definition at line 79 of file Rn.h.

typedef long int Z

Definition at line 72 of file Rn.h.


Function Documentation

template<class T >
T Abs ( const T &  a) [inline]

Definition at line 43 of file Rn.h.

{return a <0 ? -a : a;}

Here is the caller graph for this function:

R Aire2d ( const R2  A,
const R2  B,
const R2  C 
) [inline]

Definition at line 215 of file Rn.h.

{return (B-A)^(C-A);} 
R Angle2d ( R2  P) [inline]

Definition at line 216 of file Rn.h.

{ return atan2(P.y,P.x);}
template<class T >
void Echange ( T &  a,
T &  b 
) [inline]

Definition at line 44 of file Rn.h.

{T c=a;a=b;b=c;}
template<class T >
T Max ( const T &  a,
const T &  b 
) [inline]

Definition at line 47 of file Rn.h.

{return a > b ? a : b;}

Here is the caller graph for this function:

template<class T >
T Max ( const T &  a,
const T &  b,
const T &  c 
) [inline]

Definition at line 49 of file Rn.h.

{return Max(Max(a,b),c);}

Here is the call graph for this function:

template<class T >
T Max ( const T &  a,
const T &  b,
const T &  c,
const T &  d 
) [inline]

Definition at line 52 of file Rn.h.

 {return Max(Max(a,b),Max(c,d));}

Here is the call graph for this function:

R3 Max ( R3  P,
R3  Q 
) [inline]

Definition at line 233 of file Rn.h.

{return R3(P.x>Q.x ? P.x : Q.x, P.y>Q.y ? P.y : Q.y, P.z>Q.z ? P.z : Q.z);} //Pt de xyz Max
template<class T >
T Min ( const T &  a,
const T &  b 
) [inline]

Definition at line 46 of file Rn.h.

{return a < b ? a : b;}

Here is the caller graph for this function:

template<class T >
T Min ( const T &  a,
const T &  b,
const T &  c 
) [inline]

Definition at line 50 of file Rn.h.

{return Min(Min(a,b),c);}

Here is the call graph for this function:

template<class T >
T Min ( const T &  a,
const T &  b,
const T &  c,
const T &  d 
) [inline]

Definition at line 54 of file Rn.h.

 {return Min(Min(a,b),Min(c,d));}

Here is the call graph for this function:

R3 Min ( R3  P,
R3  Q 
) [inline]

Definition at line 231 of file Rn.h.

{return R3(P.x<Q.x ? P.x : Q.x, P.y<Q.y ? P.y : Q.y, P.z<Q.z ? P.z : Q.z);} //Pt de xyz Min
R Norme2 ( const R2 A) [inline]

Definition at line 219 of file Rn.h.

{ return sqrt((A,A));}
R Norme2 ( const R3 A) [inline]

Definition at line 223 of file Rn.h.

{ return sqrt((A,A));}
R Norme2 ( const R4 A) [inline]

Definition at line 227 of file Rn.h.

{ return sqrt((A,A));}
R Norme2_2 ( const R2 A) [inline]

Definition at line 218 of file Rn.h.

{ return (A,A);}
R Norme2_2 ( const R3 A) [inline]

Definition at line 222 of file Rn.h.

{ return (A,A);}
R Norme2_2 ( const R4 A) [inline]

Definition at line 226 of file Rn.h.

{ return (A,A);}
R NormeInfinie ( const R2 A) [inline]

Definition at line 220 of file Rn.h.

{return Max(Abs(A.x),Abs(A.y));}

Here is the call graph for this function:

R NormeInfinie ( const R3 A) [inline]

Definition at line 224 of file Rn.h.

{return Max(Abs(A.x),Abs(A.y),Abs(A.z));}

Here is the call graph for this function:

R NormeInfinie ( const R4 A) [inline]

Definition at line 228 of file Rn.h.

{return Max(Abs(A.x),Abs(A.y),Abs(A.z),Abs(A.omega));}

Here is the call graph for this function:

R2 XY ( R3  P) [inline]

Definition at line 230 of file Rn.h.

{return R2(P.x, P.y);}  //restriction a R2 d'un R3 par perte de z

Here is the caller graph for this function: