ManaPlus
|
#include <vector.h>
Public Member Functions | |
Vector () | |
Vector (const float x0, const float y0, const float z0) | |
Vector (const Vector &v) | |
bool | isNull () const |
Vector & | operator= (const Vector &v) |
Vector | operator* (const float c) const |
Vector & | operator*= (const float c) |
Vector | operator/ (const float c) const |
Vector & | operator/= (const float c) |
Vector | operator+ (const Vector &v) const |
Vector & | operator+= (const Vector &v) |
Vector | operator- (const Vector &v) const |
Vector & | operator-= (const Vector &v) |
float | length () const |
float | squaredLength () const |
float | manhattanLength () const |
Vector | normalized () const |
Data Fields | |
float | x |
float | y |
float | z |
Vector class. Represents either a 3D point in space, a velocity or a force. Provides several convenient operator overloads.
|
inline |
Constructor.
Definition at line 45 of file vector.h.
Referenced by normalized(), operator*(), operator+(), operator-(), and operator/().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
float Vector::x |
Definition at line 209 of file vector.h.
Referenced by Being::calcDirection(), Actor::getPixelX(), isNull(), length(), LocalPlayer::loadHomes(), ActorSprite::logic(), manhattanLength(), LocalPlayer::moveToHome(), normalized(), FindBeingFunctor::operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator=(), FloorItem::postInit(), LocalPlayer::saveHomes(), LocalPlayer::setDestination(), LocalPlayer::setHome(), Particle::setVelocity(), squaredLength(), Particle::update(), LocalPlayer::updateNavigateList(), and Particle::updateSelf().
float Vector::y |
Definition at line 209 of file vector.h.
Referenced by Being::calcDirection(), Actor::getPixelY(), Particle::getPixelY(), TextParticle::getPixelY(), Actor::getSortPixelY(), Particle::getSortPixelY(), TextParticle::getSortPixelY(), isNull(), length(), LocalPlayer::loadHomes(), ActorSprite::logic(), manhattanLength(), LocalPlayer::moveToHome(), normalized(), FindBeingFunctor::operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator=(), FloorItem::postInit(), LocalPlayer::saveHomes(), LocalPlayer::setDestination(), LocalPlayer::setHome(), Particle::setVelocity(), squaredLength(), Particle::update(), LocalPlayer::updateNavigateList(), and Particle::updateSelf().
float Vector::z |
Definition at line 209 of file vector.h.
Referenced by TextParticle::getPixelY(), TextParticle::getSortPixelY(), isNull(), length(), manhattanLength(), normalized(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator=(), Particle::setVelocity(), squaredLength(), and Particle::updateSelf().