|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CVector2f Class ReferenceA 2D vector of float.
More...
#include <vector_2f.h>
List of all members.
Detailed Description
A 2D vector of float.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 47 of file vector_2f.h.
Constructor & Destructor Documentation
NLMISC::CVector2f::CVector2f |
( |
|
) |
[inline] |
|
|
Constructor wich do nothing.
Definition at line 58 of file vector_2f.h.
Referenced by maxof, minof, normed, operator *, operator *=, operator!=, operator+, operator+=, operator-, operator-=, operator/, operator/=, and operator==. |
NLMISC::CVector2f::CVector2f |
( |
float |
_x, |
|
|
float |
_y |
|
) |
[inline] |
|
NLMISC::CVector2f::CVector2f |
( |
const CVector2f & |
v |
) |
[inline] |
|
NLMISC::CVector2f::CVector2f |
( |
const CVector & |
v |
) |
[inline] |
|
|
Constructor that uses the (x,y) coordinates of a CVector.
Definition at line 64 of file vector_2f.h. |
Member Function Documentation
CVector NLMISC::CVector2f::asVector |
( |
|
) |
const [inline] |
|
bool NLMISC::CVector2f::isNull |
( |
|
) |
const [inline] |
|
void NLMISC::CVector2f::maxof |
( |
const CVector2f & |
a, |
|
|
const CVector2f & |
b |
|
) |
[inline] |
|
void NLMISC::CVector2f::minof |
( |
const CVector2f & |
a, |
|
|
const CVector2f & |
b |
|
) |
[inline] |
|
float NLMISC::CVector2f::norm |
( |
|
) |
const [inline] |
|
void NLMISC::CVector2f::normalize |
( |
|
) |
[inline] |
|
CVector2f NLMISC::CVector2f::normed |
( |
|
) |
const [inline] |
|
float NLMISC::CVector2f::operator * |
( |
const CVector2f & |
v |
) |
const [inline] |
|
CVector2f NLMISC::CVector2f::operator * |
( |
float |
f |
) |
const [inline] |
|
CVector2f& NLMISC::CVector2f::operator *= |
( |
float |
f |
) |
[inline] |
|
NLMISC::CVector2f::operator CVector |
( |
|
) |
const [inline] |
|
bool NLMISC::CVector2f::operator!= |
( |
const CVector2f & |
v |
) |
const [inline] |
|
CVector2f NLMISC::CVector2f::operator+ |
( |
const CVector2f & |
v |
) |
const [inline] |
|
CVector2f& NLMISC::CVector2f::operator+= |
( |
const CVector2f & |
v |
) |
[inline] |
|
CVector2f NLMISC::CVector2f::operator- |
( |
|
) |
const [inline] |
|
CVector2f NLMISC::CVector2f::operator- |
( |
const CVector2f & |
v |
) |
const [inline] |
|
CVector2f& NLMISC::CVector2f::operator-= |
( |
const CVector2f & |
v |
) |
[inline] |
|
CVector2f NLMISC::CVector2f::operator/ |
( |
float |
f |
) |
const [inline] |
|
CVector2f& NLMISC::CVector2f::operator/= |
( |
float |
f |
) |
[inline] |
|
bool NLMISC::CVector2f::operator== |
( |
const CVector2f & |
v |
) |
const [inline] |
|
void NLMISC::CVector2f::set |
( |
float |
_x, |
|
|
float |
_y |
|
) |
[inline] |
|
float NLMISC::CVector2f::sqrnorm |
( |
|
) |
const [inline] |
|
|
Return the square of the norm of the vector.
Definition at line 91 of file vector_2f.h.
References x, and y.
Referenced by norm. |
Friends And Related Function Documentation
CVector2f operator * |
( |
float |
f, |
|
|
const CVector2f & |
v0 |
|
) |
[friend] |
|
Member Data Documentation
const CVector2f NLMISC::CVector2f::Null [static]
|
|
float NLMISC::CVector2f::x
|
|
|
Definition at line 52 of file vector_2f.h.
Referenced by asVector, NL3D::CWaterShape::computeBBox, NL3D::CWaterModel::getAttenuatedHeight, NL3D::CWaterHeightMap::getHeight, NLMISC::CPolygon2D::getLineEquation, NL3D::CPSQuad::getNeededVB, NL3D::CSurfaceLightGrid::getStaticLightSetup, isNull, NL3D::CZoneLighter::lightWater, maxof, minof, NL3D::CPatchUVLocator::CUVBasis::mulPoint, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, NLPACS::CVector2s::pack, NL3D::CWaterHeightMap::perturbate, NL3D::CWaterHeightMap::perturbatePoint, serial, set, sqrnorm, and NL3D::CPSQuad::updateVbColNUVForRender. |
float NLMISC::CVector2f::y
|
|
|
Definition at line 52 of file vector_2f.h.
Referenced by asVector, NL3D::CEdge::CEdge, NL3D::CWaterShape::computeBBox, NL3D::CWaterModel::getAttenuatedHeight, NL3D::CWaterHeightMap::getHeight, NLMISC::CPolygon2D::getLineEquation, NL3D::CPSQuad::getNeededVB, NL3D::CSurfaceLightGrid::getStaticLightSetup, isNull, NL3D::CZoneLighter::lightWater, maxof, minof, NL3D::CPatchUVLocator::CUVBasis::mulPoint, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator==, NLPACS::CVector2s::pack, NL3D::CWaterHeightMap::perturbate, NL3D::CWaterHeightMap::perturbatePoint, serial, set, sqrnorm, and NL3D::CPSQuad::updateVbColNUVForRender. |
The documentation for this class was generated from the following files:
|
|