CPoint2 class, two dimensional point.
More...
#include <Point2.H>
List of all members.
Detailed Description
CPoint2 class, two dimensional point.
Two dimensional point
Definition at line 20 of file Point2.H.
Constructor & Destructor Documentation
MeshLib::CPoint2::CPoint2 |
( |
|
) |
[inline] |
CPoint2 default constructor, it is initialized to be (0,0)
Definition at line 26 of file Point2.H.
MeshLib::CPoint2::CPoint2 |
( |
const CPoint2 & |
uv |
) |
[inline] |
MeshLib::CPoint2::~CPoint2 |
( |
|
) |
[inline] |
MeshLib::CPoint2::CPoint2 |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | [inline] |
Member Function Documentation
double MeshLib::CPoint2::norm |
( |
|
) |
[inline] |
double MeshLib::CPoint2::norm2 |
( |
|
) |
[inline] |
void MeshLib::CPoint2::operator/= |
( |
double |
s |
) |
[inline] |
Divide by a scalor
Definition at line 59 of file Point2.H.
bool MeshLib::CPoint2::operator== |
( |
const CPoint2 & |
uv |
) |
[inline] |
Definition at line 46 of file Point2.H.
{
return ( m_c[0] == uv.m_c[0] && m_c[1] == uv.m_c[1] );
}
double MeshLib::CPoint2::operator[] |
( |
int |
i |
) |
const [inline] |
constant values, CPoint2[0] x value ; CPoint2[1] y value;
Definition at line 54 of file Point2.H.
{ assert( i < 2 && i >= 0 ); return m_c[i]; };
double& MeshLib::CPoint2::operator[] |
( |
int |
i |
) |
[inline] |
reference to the values, CPoint2[0] x value ; CPoint2[1] y value;
Definition at line 44 of file Point2.H.
{ assert( i < 2 && i >= 0 ); return m_c[i]; };
Member Data Documentation
(x,y) value
Definition at line 73 of file Point2.H.
The documentation for this class was generated from the following file: