OpenFOAM logo
Open Source CFD Toolkit

point2D Class Reference

List of all members.

Public Member Functions

 point2D ()
 Construct as null.
 point2D (const scalar, const scalar)
 Construct from components.
 point2D (const point &)
 Construct from point (uses only x and y components).
 point2D (Istream &)
 Construct from Istream.
 ~point2D ()
scalar x () const
scalar y () const
void operator= (const point2D &)
void operator *= (const scalar &)

Friends

point2D operator+ (const point2D &, const point2D &)
 addition
point2D operator- (const point2D &, const point2D &)
 subtraction
point2D operator * (const scalar &, const point2D &)
 multiplication by a scalar
bool operator== (const point2D &, const point2D &)
bool operator!= (const point2D &, const point2D &)
scalar distance (const point2D &, const point2D &)
 distance between point2Ds
Ostreamoperator<< (Ostream &, const point2D &)

Constructor & Destructor Documentation

point2D  )  [inline]
 

Construct as null.

Definition at line 51 of file point2DI.H.

point2D const   scalar,
const   scalar
[inline]
 

Construct from components.

Definition at line 59 of file point2DI.H.

References p, and Foam::point.

point2D const point  )  [inline]
 

Construct from point (uses only x and y components).

Definition at line 67 of file point2DI.H.

References Istream::readBegin().

Here is the call graph for this function:

point2D Istream is  )  [inline]
 

Construct from Istream.

Read beginning of point2D

Read end of point2D

Check state of Istream

Definition at line 75 of file point2DI.H.

~point2D  )  [inline]
 

Definition at line 92 of file point2DI.H.


Member Function Documentation

void operator *= const scalar &   )  [inline]
 

Definition at line 118 of file point2DI.H.

References point2D::X, and point2D::Y.

void operator= const point2D  )  [inline]
 

Definition at line 112 of file point2DI.H.

scalar x  )  const [inline]
 

Definition at line 98 of file point2DI.H.

Referenced by string2D::horizontal().

scalar y  )  const [inline]
 

Definition at line 104 of file point2DI.H.

References point2D::X, and point2D::Y.

Referenced by string2D::x().


Friends And Related Function Documentation

scalar distance const point2D p1,
const point2D p2
[friend]
 

distance between point2Ds

Definition at line 157 of file point2DI.H.

point2D operator * const scalar &  s,
const point2D p
[friend]
 

multiplication by a scalar

Definition at line 139 of file point2DI.H.

bool operator!= const point2D p1,
const point2D p2
[friend]
 

Definition at line 151 of file point2DI.H.

point2D operator+ const point2D p1,
const point2D p2
[friend]
 

addition

Definition at line 127 of file point2DI.H.

point2D operator- const point2D p1,
const point2D p2
[friend]
 

subtraction

Definition at line 133 of file point2DI.H.

Ostream& operator<< Ostream os,
const point2D p
[friend]
 

Check state of IOstream

Definition at line 165 of file point2DI.H.

bool operator== const point2D p1,
const point2D p2
[friend]
 

Definition at line 145 of file point2DI.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org