Version: 6.3.1
Public Member Functions | Data Fields | Friends

R4 Class Reference

#include <Rn.h>

Inheritance diagram for R4:
Inheritance graph
[legend]

Public Member Functions

 R4 ()
 R4 (R a, R b, R c, R d)
 R4 (R4 A, R4 B)
R4 operator+ (R4 P) const
R4 operator+= (R4 P)
R4 operator- (R4 P) const
R4 operator-= (R4 P)
R4 operator- () const
R4 operator+ () const
R operator, (R4 P) const
R4 operator* (R c) const
R4 operator*= (R c)
R4 operator/ (R c) const
R4 operator/= (R c)
Roperator[] (int i)
R3 operator+ (R3 P) const
R3 operator+= (R3 P)
R3 operator- (R3 P) const
R3 operator-= (R3 P)
R operator, (R3 P) const
R3 operator^ (R3 P) const
bool DansPave (R3 &xyzMin, R3 &xyzMax)

Data Fields

R omega
R x
R y
R z

Friends

std::ostream & operator<< (std::ostream &f, const R4 &P)
istream & operator>> (istream &f, R4 &P)
std::ostream & operator<< (std::ostream &f, const R4 *P)
istream & operator>> (istream &f, R4 *P)
R4 operator* (R c, R4 P)
R3 operator* (R c, R3 P)
gp_Pnt gp_pnt (R3 xyz)
gp_Dir gp_dir (R3 xyz)

Detailed Description

Definition at line 181 of file Rn.h.


Constructor & Destructor Documentation

R4.R4 ( )

Definition at line 196 of file Rn.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

:omega(1.0) {}  //les constructeurs
R4.R4 ( R  a,
R  b,
R  c,
R  d 
)

Definition at line 197 of file Rn.h.

:R3(a,b,c),omega(d) {}
R4.R4 ( R4  A,
R4  B 
)

Definition at line 198 of file Rn.h.

:R3(B.x-A.x,B.y-A.y,B.z-A.z),omega(B.omega-A.omega) {}

Member Function Documentation

bool R3.DansPave ( R3 xyzMin,
R3 xyzMax 
) [inherited]

Definition at line 173 of file Rn.h.

References R3.x, R3.y, and R3.z.

    { return xyzMin.x<=x && x<=xyzMax.x &&
             xyzMin.y<=y && y<=xyzMax.y &&
             xyzMin.z<=z && z<=xyzMax.z; }
R4 R4.operator* ( R  c) const

Reimplemented from R3.

Definition at line 207 of file Rn.h.

References omega, R4(), R3.x, R3.y, and R3.z.

{return R4(x*c,y*c,z*c,omega*c);}
R4 R4.operator*= ( R  c)

Reimplemented from R3.

Definition at line 208 of file Rn.h.

References omega, R3.x, R3.y, and R3.z.

{x *= c; y *= c; z *= c; omega *= c; return *this;}
R4 R4.operator+ ( R4  P) const

Definition at line 200 of file Rn.h.

References omega, R4(), R3.x, R3.y, and R3.z.

{return R4(x+P.x,y+P.y,z+P.z,omega+P.omega);}
R4 R4.operator+ ( ) const

Reimplemented from R3.

Definition at line 205 of file Rn.h.

{return *this;}
R3 R3.operator+ ( R3  P) const [inherited]

Definition at line 151 of file Rn.h.

References R3.R3(), R3.x, R3.y, and R3.z.

{return R3(x+P.x,y+P.y,z+P.z);}
R4 R4.operator+= ( R4  P)

Definition at line 201 of file Rn.h.

References omega, R3.x, R3.y, and R3.z.

{x += P.x;y += P.y;z += P.z;omega += P.omega;return *this;}
R3 R3.operator+= ( R3  P) [inherited]

Definition at line 152 of file Rn.h.

References R3.x, R3.y, and R3.z.

{x += P.x; y += P.y; z += P.z; return *this;}
R R3.operator, ( R3  P) const [inherited]

Definition at line 157 of file Rn.h.

References R3.x, R3.y, and R3.z.

{return  x*P.x+y*P.y+z*P.z;} // produit scalaire
R R4.operator, ( R4  P) const

Definition at line 206 of file Rn.h.

References omega, R3.x, R3.y, and R3.z.

{return  x*P.x+y*P.y+z*P.z+omega*P.omega;} // produit scalaire
R3 R3.operator- ( R3  P) const [inherited]

Definition at line 153 of file Rn.h.

References R3.R3(), R3.x, R3.y, and R3.z.

{return R3(x-P.x,y-P.y,z-P.z);}
R4 R4.operator- ( ) const

Reimplemented from R3.

Definition at line 204 of file Rn.h.

References omega, R4(), R3.x, R3.y, and R3.z.

{return R4(-x,-y,-z,-omega);}
R4 R4.operator- ( R4  P) const

Definition at line 202 of file Rn.h.

References omega, R4(), R3.x, R3.y, and R3.z.

{return R4(x-P.x,y-P.y,z-P.z,omega-P.omega);}
R4 R4.operator-= ( R4  P)

Definition at line 203 of file Rn.h.

References omega, R3.x, R3.y, and R3.z.

{x -= P.x;y -= P.y;z -= P.z;omega -= P.omega;return *this;}
R3 R3.operator-= ( R3  P) [inherited]

Definition at line 154 of file Rn.h.

References R3.x, R3.y, and R3.z.

{x -= P.x; y -= P.y; z -= P.z; return *this;}
R4 R4.operator/ ( R  c) const

Reimplemented from R3.

Definition at line 209 of file Rn.h.

References omega, R4(), R3.x, R3.y, and R3.z.

{return R4(x/c,y/c,z/c,omega/c);}
R4 R4.operator/= ( R  c)

Reimplemented from R3.

Definition at line 210 of file Rn.h.

References omega, R3.x, R3.y, and R3.z.

{x /= c; y /= c; z /= c; omega /= c; return *this;}
R& R4.operator[] ( int  i)

Reimplemented from R3.

Definition at line 211 of file Rn.h.

References R3.x.

{return (&x)[i];}
R3 R3.operator^ ( R3  P) const [inherited]

Definition at line 158 of file Rn.h.

References R3.R3(), R3.x, R3.y, and R3.z.

{return R3(y*P.z-z*P.y ,P.x*z-x*P.z, x*P.y-y*P.x);} // produit vectoriel

Friends And Related Function Documentation

gp_Dir gp_dir ( R3  xyz) [friend, inherited]

Definition at line 171 of file Rn.h.

{ return gp_Dir(xyz.x,xyz.y,xyz.z); }
gp_Pnt gp_pnt ( R3  xyz) [friend, inherited]

Definition at line 169 of file Rn.h.

{ return gp_Pnt(xyz.x,xyz.y,xyz.z); }
R3 operator* ( R  c,
R3  P 
) [friend, inherited]

Definition at line 164 of file Rn.h.

{return P*c;}
R4 operator* ( R  c,
R4  P 
) [friend]

Definition at line 212 of file Rn.h.

{return P*c;}
std::ostream& operator<< ( std::ostream &  f,
const R4 P 
) [friend]

Definition at line 183 of file Rn.h.

  { f << P.x << ' ' << P.y << ' ' << P.z << ' ' << P.omega; return f; }
std::ostream& operator<< ( std::ostream &  f,
const R4 P 
) [friend]

Definition at line 188 of file Rn.h.

  { f << P->x << ' ' << P->y << ' ' << P->z << ' ' << P->omega; return f; }
istream& operator>> ( istream &  f,
R4 P 
) [friend]

Definition at line 190 of file Rn.h.

  { f >> P->x >>  P->y >>  P->z >> P->omega ; return f; }
istream& operator>> ( istream &  f,
R4 P 
) [friend]

Definition at line 185 of file Rn.h.

  { f >> P.x >>  P.y >>  P.z >> P.omega ; return f; }

Field Documentation

R R3.x [inherited]
R R3.y [inherited]
R R3.z [inherited]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS