|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CVector2d Class ReferenceA 2D vector of double.
More...
#include <vector_2d.h>
List of all members.
Detailed Description
A 2D vector of double.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 48 of file vector_2d.h.
Constructor & Destructor Documentation
NLMISC::CVector2d::CVector2d |
( |
|
) |
[inline] |
|
|
Constructor wich do nothing.
Definition at line 59 of file vector_2d.h.
Referenced by maxof, minof, normed, operator *, operator *=, operator!=, operator+, operator+=, operator-, operator-=, operator/, operator/=, and operator==. |
NLMISC::CVector2d::CVector2d |
( |
double |
_x, |
|
|
double |
_y |
|
) |
[inline] |
|
NLMISC::CVector2d::CVector2d |
( |
const CVector2d & |
v |
) |
[inline] |
|
NLMISC::CVector2d::CVector2d |
( |
const CVector2f & |
v |
) |
[inline] |
|
Member Function Documentation
bool NLMISC::CVector2d::isNull |
( |
|
) |
const [inline] |
|
void NLMISC::CVector2d::maxof |
( |
const CVector2d & |
a, |
|
|
const CVector2d & |
b |
|
) |
[inline] |
|
|
Set all vector x/y/z as maximum of a/b x/y/z (respectively).
Definition at line 119 of file vector_2d.h.
References CVector2d, x, and y. |
void NLMISC::CVector2d::minof |
( |
const CVector2d & |
a, |
|
|
const CVector2d & |
b |
|
) |
[inline] |
|
|
Set all vector x/y/z as minimum of a/b x/y/z (respectively).
Definition at line 113 of file vector_2d.h.
References CVector2d, min, x, and y. |
double NLMISC::CVector2d::norm |
( |
|
) |
const [inline] |
|
void NLMISC::CVector2d::normalize |
( |
|
) |
[inline] |
|
CVector2d NLMISC::CVector2d::normed |
( |
|
) |
const [inline] |
|
double NLMISC::CVector2d::operator * |
( |
const CVector2d & |
v |
) |
const [inline] |
|
CVector2d NLMISC::CVector2d::operator * |
( |
double |
f |
) |
const [inline] |
|
CVector2d& NLMISC::CVector2d::operator *= |
( |
double |
f |
) |
[inline] |
|
bool NLMISC::CVector2d::operator!= |
( |
const CVector2d & |
v |
) |
const [inline] |
|
CVector2d NLMISC::CVector2d::operator+ |
( |
const CVector2d & |
v |
) |
const [inline] |
|
CVector2d& NLMISC::CVector2d::operator+= |
( |
const CVector2d & |
v |
) |
[inline] |
|
CVector2d NLMISC::CVector2d::operator- |
( |
|
) |
const [inline] |
|
CVector2d NLMISC::CVector2d::operator- |
( |
const CVector2d & |
v |
) |
const [inline] |
|
CVector2d& NLMISC::CVector2d::operator-= |
( |
const CVector2d & |
v |
) |
[inline] |
|
CVector2d NLMISC::CVector2d::operator/ |
( |
double |
f |
) |
const [inline] |
|
CVector2d& NLMISC::CVector2d::operator/= |
( |
double |
f |
) |
[inline] |
|
bool NLMISC::CVector2d::operator== |
( |
const CVector2d & |
v |
) |
const [inline] |
|
void NLMISC::CVector2d::set |
( |
double |
_x, |
|
|
double |
_y |
|
) |
[inline] |
|
double NLMISC::CVector2d::sqrnorm |
( |
|
) |
const [inline] |
|
|
Return the square of the norm of the vector.
Definition at line 89 of file vector_2d.h.
References x, and y.
Referenced by norm. |
Friends And Related Function Documentation
CVector2d operator * |
( |
double |
f, |
|
|
const CVector2d & |
v0 |
|
) |
[friend] |
|
Member Data Documentation
double NLMISC::CVector2d::x
|
|
|
Definition at line 53 of file vector_2d.h.
Referenced by isNull, maxof, minof, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, serial, set, and sqrnorm. |
double NLMISC::CVector2d::y
|
|
|
Definition at line 53 of file vector_2d.h.
Referenced by isNull, maxof, minof, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, serial, set, and sqrnorm. |
The documentation for this class was generated from the following file:
|
|