#include <Vector.h>

Public Member Functions | |
| Vector () | |
| Vector (const Vector &v) | |
| Vector (const float Pt[3]) | |
| Vector (const float ang, const double length) | |
| Vector (const float ptA, const float ptB, const float ptC=0.0f) | |
| Vector (const int ptA, const int ptB, const int ptC=0) | |
| void | initialise (const float a, const float b, const float c) |
| Vector | Normalize () |
| Vector | Normalize2D () |
| float | Magnitude () |
| float | Magnitude2d () |
| float | Magnitude2dSquared () |
| float | MagnitudeSquared () |
| float | dotP (const Vector &Vin) |
| float | Max () |
| Vector | get2DPerp () |
| void | StoreInvert () |
| void | StoreNormalize () |
| void | zero () |
| Vector | operator+ (const float m) |
| Vector | operator+ (const Vector &Vin) |
| Vector | operator- (const float m) |
| Vector | operator- (const Vector &Vin) |
| Vector | operator * (const float a) |
| Vector | operator * (const Vector &Vin) |
| Vector | operator/ (const float a) |
| Vector | operator/ (const Vector &Vin) |
| Vector | operator- () |
| void | operator *= (const float a) |
| void | operator *= (const Vector &Vin) |
| void | operator/= (const float a) |
| void | operator/= (const Vector &Vin) |
| void | operator+= (const float a) |
| void | operator+= (const Vector &Vin) |
| void | operator-= (const float a) |
| void | operator-= (const Vector &Vin) |
| bool | operator== (const Vector &Vin1) |
| bool | operator!= (const Vector &Vin1) |
| float & | operator[] (const int m) |
| float const & | operator[] (const int m) const |
| operator float * () | |
Static Public Member Functions | |
| static Vector & | getNullVector () |
Protected Attributes | |
| float | V [3] |
Definition at line 27 of file Vector.h.
| Vector::Vector | ( | const float | ang, | |
| const double | length | |||
| ) | [inline] |
| Vector::Vector | ( | const float | ptA, | |
| const float | ptB, | |||
| const float | ptC = 0.0f | |||
| ) | [inline] |
| Vector::Vector | ( | const int | ptA, | |
| const int | ptB, | |||
| const int | ptC = 0 | |||
| ) | [inline] |
| void Vector::initialise | ( | const float | a, | |
| const float | b, | |||
| const float | c | |||
| ) | [inline] |
| Vector Vector::Normalize | ( | ) | [inline] |
Definition at line 77 of file Vector.h.
References Magnitude().
Referenced by WaterWaves::draw(), MissileMesh::draw(), GLLenseFlare::draw(), SkyDome::drawBackdrop(), Hemisphere::drawColored(), TargetRendererImplTank::drawInfo(), MSModelFactory::loadFile(), VectorLib::reflection(), and Model::setupColor().
| Vector Vector::Normalize2D | ( | ) | [inline] |
Definition at line 86 of file Vector.h.
References V.
Referenced by WaterWaves::constructLines(), and GLWPlanView::drawCameraPointer().
| float Vector::Magnitude | ( | ) | [inline] |
Definition at line 95 of file Vector.h.
References MagnitudeSquared().
Referenced by TargetGroupsGroupEntry::addObject(), ocean_wave_generator< T >::compute_displacements(), MeshLODVector::computeEdgeCollapseCost(), SkyRoof::drawSegment(), Landscape::drawShadows(), ocean_wave_generator< T >::h_tilde(), Normalize(), and StoreNormalize().
| float Vector::Magnitude2d | ( | ) | [inline] |
| float Vector::Magnitude2dSquared | ( | ) | [inline] |
| float Vector::MagnitudeSquared | ( | ) | [inline] |
Definition at line 110 of file Vector.h.
References V.
Referenced by Magnitude(), and ocean_wave_generator< T >::phillips().
| float Vector::dotP | ( | const Vector & | Vin | ) | [inline] |
Definition at line 115 of file Vector.h.
References V.
Referenced by ImageModifier::addLightMapToBitmap(), Line::dotP(), GLLenseFlare::draw(), Hemisphere::drawColored(), LandSurround::generateList(), Line::intersect(), SkyRoof::makeNormal(), ocean_wave_generator< T >::phillips(), Triangle::rayIntersect(), VectorLib::reflection(), Model::setupColor(), VectorLib::sphereIntersection(), and TargetRendererImpl::storeTarget2DPos().
| float Vector::Max | ( | ) | [inline] |
| Vector Vector::get2DPerp | ( | ) | [inline] |
Definition at line 127 of file Vector.h.
References V.
Referenced by WaterWaves::constructLines(), GLWPlanView::drawCameraPointer(), and Line::get2DPerp().
| void Vector::StoreNormalize | ( | ) | [inline] |
Definition at line 140 of file Vector.h.
References Magnitude().
Referenced by SkyRoof::drawSegment(), Water2Renderer::generate(), GLCamera::moveViewport(), GLCamera::scroll(), and Model::setupColor().
| void Vector::zero | ( | ) | [inline] |
Definition at line 147 of file Vector.h.
References V.
Referenced by TankMesh::drawMesh(), getNullVector(), and GLCamera::simulate().
| Vector Vector::operator+ | ( | const float | m | ) | [inline] |
| Vector Vector::operator- | ( | const float | m | ) | [inline] |
| Vector Vector::operator * | ( | const float | a | ) | [inline] |
| Vector Vector::operator/ | ( | const float | a | ) | [inline] |
| void Vector::operator *= | ( | const float | a | ) | [inline] |
| void Vector::operator *= | ( | const Vector & | Vin | ) | [inline] |
| void Vector::operator/= | ( | const float | a | ) | [inline] |
| void Vector::operator/= | ( | const Vector & | Vin | ) | [inline] |
| void Vector::operator+= | ( | const float | a | ) | [inline] |
| void Vector::operator+= | ( | const Vector & | Vin | ) | [inline] |
| void Vector::operator-= | ( | const Vector & | Vin | ) | [inline] |
| bool Vector::operator== | ( | const Vector & | Vin1 | ) | [inline] |
| float& Vector::operator[] | ( | const int | m | ) | [inline] |
| float const& Vector::operator[] | ( | const int | m | ) | const [inline] |
| Vector & Vector::getNullVector | ( | ) | [static] |
Definition at line 27 of file Vector.cpp.
References zero().
Referenced by TargetRendererImpl::createParticle(), Water2::generate(), GLWDropDownColor::getCurrentColor(), TankColorGenerator::getTeamColor(), ExplosionLaserBeamRenderer::init(), MSModelFactory::loadFile(), GLWPlanView::mouseUp(), ComsSyncCheckMessage::readMessage(), LandscapeSoundPositionAmbient::setPosition(), and GLWPlanView::simulate().
float Vector::V[3] [protected] |
Definition at line 301 of file Vector.h.
Referenced by dotP(), get2DPerp(), initialise(), Magnitude2dSquared(), MagnitudeSquared(), Max(), Normalize2D(), operator *(), operator *=(), operator float *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), operator[](), StoreInvert(), Vector(), and zero().
1.5.3