Version: 8.3.0
R2 Class Reference

#include <Rn.h>

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)
 

Constructor & Destructor Documentation

R2::R2 ( )
R2::R2 ( R  a,
R  b 
)
R2::R2 ( R2  A,
R2  B 
)

Member Function Documentation

R2 R2::operator* ( R  c) const

References R2(), x, and y.

R2 R2::operator*= ( R  c)

References x, and y.

R2 R2::operator+ ( R2  P) const

References R2(), x, and y.

R2 R2::operator+ ( ) const
R2 R2::operator+= ( R2  P)

References x, and y.

R R2::operator, ( R2  P) const

References x, and y.

R2 R2::operator- ( R2  P) const

References R2(), x, and y.

R2 R2::operator- ( ) const

References R2(), x, and y.

R2 R2::operator-= ( R2  P)

References x, and y.

R2 R2::operator/ ( R  c) const

References R2(), x, and y.

R2 R2::operator/= ( R  c)

References x, and y.

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

References x.

R R2::operator^ ( R2  P) const

References x, and y.

R2 R2::orthogonal ( )

References R2(), x, and y.

Friends And Related Function Documentation

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

Field Documentation