#include <Vector.h>
Collaboration diagram for Vector:
Public Member Functions | |
BLUB_TYPE (size_type) | |
BLUB_TYPE (iterator) | |
BLUB_TYPE (const_iterator) | |
Vector () | |
unhide selected functions... | |
Vector (uint items, real values) | |
filled constructor | |
Vector (const Vector &src) | |
Vector (size_type size) | |
Vector & | operator= (const Vector &v) |
size_type | size () const |
void | reserve (size_type s) |
void | resize (size_type s) |
iterator | begin () |
const_iterator | begin () const |
const_iterator | end () const |
real & | operator[] (uint i) |
const real & | operator[] (uint i) const |
void | clear () |
void | push_back (const real &x) |
real | magnitude () const |
more sugar here... | |
void | normalize () |
Vector | operator- (const Vector &v) const |
Vector | operator+ (const Vector &v) const |
Vector & | operator+= (const Vector &v) |
Vector | subset (uint start=0) const |
Vector | subset (uint start, uint size=0) const |
void | setAll (real val) |
set all elements to val | |
void | null () |
set all elements to 0 | |
Vector & | append (const Vector &v) |
Insert contents of another vector at the end of this one. | |
void | setMore (const Vector &v, uint startIndex=0) |
Will be resized if necessary. | |
void | clamp (real min, real max) |
all elements will be clamped to the given interval (inclusive) | |
Vector & | operator *= (const real r) |
scalars | |
Vector | operator * (const real r) const |
Vector | operator+ (const real r) const |
Vector & | operator+= (const real r) |
real | distance (const Vector &to) const |
operator std::string () const | |
example: "(1.4,4.4,4.5)" | |
void | toStream (std::ostream &s) const |
Static Public Member Functions | |
Vector | fromInts (std::vector< int > iv) |
Vector | fromInts (uint size, int *data) |
Static Public Attributes | |
const Vector | ZOID |
Protected Member Functions | |
template<class InputIterator> | Vector (InputIterator f, InputIterator t) |
Friends | |
bool | operator== (const Vector &o1, const Vector &o2) |
|
unhide selected functions...
|
|
filled constructor
|
|
|
|
|
Here is the call graph for this function:
|
|
|
Insert contents of another vector at the end of this one.
|
|
|
|
|
|
|
|
|
|
|
|
all elements will be clamped to the given interval (inclusive)
|
|
|
|
|
|
|
|
|
|
|
|
more sugar here...
|
|
|
|
set all elements to 0
|
Here is the call graph for this function:
|
|
|
scalars
|
|
example: "(1.4,4.4,4.5)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set all elements to val
|
|
Will be resized if necessary.
|
|
|
|
|
|
|
Here is the call graph for this function:
|
|
|
|
|
|