SALOME - SMESH
R2 Class Reference

#include <Rn.h>

Collaboration diagram for R2:
Collaboration graph

Public Member Functions

 R2 ()
 
 R2 (R a, R b)
 
 R2 (R2 A, R2 B)
 
R2 operator+ (R2 P) const
 
R2 operator+= (R2 P)
 
R2 operator- (R2 P) const
 
R2 operator-= (R2 P)
 
R2 operator- () const
 
R2 operator+ () const
 
R operator, (R2 P) const
 
R operator^ (R2 P) const
 
R2 operator* (R c) const
 
R2 operator*= (R c)
 
R2 operator/ (R c) const
 
R2 operator/= (R c)
 
Roperator[] (int i)
 
R2 orthogonal ()
 

Data Fields

R x
 
R y
 

Friends

std::ostream & operator<< (std::ostream &f, const R2 &P)
 
std::istream & operator>> (std::istream &f, R2 &P)
 
std::ostream & operator<< (std::ostream &f, const R2 *P)
 
std::istream & operator>> (std::istream &f, R2 *P)
 
R2 operator* (R c, R2 P)
 

Detailed Description

Definition at line 87 of file Rn.h.

Constructor & Destructor Documentation

◆ R2() [1/3]

R2::R2 ( )

Definition at line 102 of file Rn.h.

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

Here is the caller graph for this function:

◆ R2() [2/3]

R2::R2 ( R  a,
R  b 
)

Definition at line 103 of file Rn.h.

◆ R2() [3/3]

R2::R2 ( R2  A,
R2  B 
)

Definition at line 104 of file Rn.h.

Member Function Documentation

◆ operator+() [1/2]

R2 R2::operator+ ( R2  P) const

Definition at line 106 of file Rn.h.

References R2(), x, and y.

Here is the call graph for this function:

◆ operator+=()

R2 R2::operator+= ( R2  P)

Definition at line 107 of file Rn.h.

References x, and y.

◆ operator-() [1/2]

R2 R2::operator- ( R2  P) const

Definition at line 108 of file Rn.h.

References R2(), x, and y.

Here is the call graph for this function:

◆ operator-=()

R2 R2::operator-= ( R2  P)

Definition at line 109 of file Rn.h.

References x, and y.

◆ operator-() [2/2]

R2 R2::operator- ( ) const

Definition at line 110 of file Rn.h.

References R2(), x, and y.

Here is the call graph for this function:

◆ operator+() [2/2]

R2 R2::operator+ ( ) const

Definition at line 111 of file Rn.h.

◆ operator,()

R R2::operator, ( R2  P) const

Definition at line 112 of file Rn.h.

References x, and y.

◆ operator^()

R R2::operator^ ( R2  P) const

Definition at line 113 of file Rn.h.

References x, and y.

◆ operator*()

R2 R2::operator* ( R  c) const

Definition at line 114 of file Rn.h.

References R2(), x, and y.

Here is the call graph for this function:

◆ operator*=()

R2 R2::operator*= ( R  c)

Definition at line 115 of file Rn.h.

References x, and y.

◆ operator/()

R2 R2::operator/ ( R  c) const

Definition at line 116 of file Rn.h.

References R2(), x, and y.

Here is the call graph for this function:

◆ operator/=()

R2 R2::operator/= ( R  c)

Definition at line 117 of file Rn.h.

References x, and y.

◆ operator[]()

R& R2::operator[] ( int  i)

Definition at line 118 of file Rn.h.

References x.

◆ orthogonal()

R2 R2::orthogonal ( )

Definition at line 119 of file Rn.h.

References R2(), x, and y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  f,
const R2 P 
)
friend

Definition at line 89 of file Rn.h.

◆ operator>> [1/2]

std::istream& operator>> ( std::istream &  f,
R2 P 
)
friend

Definition at line 91 of file Rn.h.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  f,
const R2 P 
)
friend

Definition at line 94 of file Rn.h.

◆ operator>> [2/2]

std::istream& operator>> ( std::istream &  f,
R2 P 
)
friend

Definition at line 96 of file Rn.h.

◆ operator*

R2 operator* ( R  c,
R2  P 
)
friend

Definition at line 120 of file Rn.h.

Field Documentation

◆ x

◆ y