cgv
|
A column vector class. More...
#include <vec.h>
Public Types | |
typedef T | value_type |
typedef T & | reference |
typedef const T & | const_reference |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T * | iterator |
typedef const T * | const_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
unsigned | size () const |
number of elements | |
unsigned | dim () const |
number of elements | |
vec () | |
standard constructor | |
vec (unsigned dim, const T &value=T(0)) | |
creates a vector with dim elements | |
vec (unsigned dim, const T *marray) | |
creates a vector with dim elements from an array | |
vec (const vec< T > &v) | |
copy constructor for vectors with equal element type | |
template<typename S > | |
vec (const vec< S > &v) | |
copy constructor for vectors with different element type | |
vec (const T &c0, const T &c1) | |
creates a 2d vector (c0,c1)^T | |
vec (const T &c0, const T &c1, const T &c2) | |
creates a 3d vector (c0,c1,c2)^T | |
vec (const T &c0, const T &c1, const T &c2, const T &c3) | |
creates a 4d vector (c0,c1,c2,c3)^T | |
void | set (const T &c0, const T &c1) |
set entries of a 2d vector | |
void | set (const T &c0, const T &c1, const T &c2) |
set entries of a 3d vector | |
void | set (const T &c0, const T &c1, const T &c2, const T &c3) |
set entries of a 4d vector | |
void | set_extern_data (unsigned dim, T *data) |
set data pointer to an external data array | |
virtual | ~vec () |
destructor | |
void | destruct () |
T * | data () |
cast into non const array | |
const T * | data () const |
cast into const array | |
vec< T > & | operator= (const vec< T > &v) |
assignment of a vector v | |
vec< T > & | operator= (const T &s) |
assignment of a scalar s | |
template<typename S > | |
vec< T > & | operator= (const vec< S > &v) |
assignment of a vector v | |
T & | operator() (unsigned i) |
element accessor | |
const T & | operator() (unsigned i) const |
const element accessor | |
T & | operator[] (unsigned i) |
element accessor | |
const T & | operator[] (unsigned i) const |
const element accessor | |
T & | first () |
element accessor for the first element | |
const T & | first () const |
const element accessor for the first element | |
T & | last () |
element accessor for the flast element | |
const T & | last () const |
const element accessor for the last element | |
T & | x () |
element accessor for the first element | |
const T & | x () const |
const element accessor for the first element | |
T & | y () |
element accessor for the second element | |
const T & | y () const |
const element accessor for the second element | |
T & | z () |
element accessor for the third element | |
const T & | z () const |
const element accessor for the third element | |
T & | w () |
element accessor for the fourth element | |
const T & | w () const |
const element accessor for the fourth element | |
vec< T > & | operator+= (const T &s) |
in place addition of a scalar s | |
vec< T > & | operator-= (const T &s) |
in place subtraction by scalar s | |
vec< T > & | operator*= (const T &s) |
in place multiplication with s | |
vec< T > & | operator/= (const T &s) |
in place division by scalar s | |
template<typename S > | |
vec< T > & | operator+= (const vec< S > &v) |
in place vector addition | |
template<typename S > | |
vec< T > & | operator-= (const vec< S > &v) |
in place vector subtraction | |
template<typename S > | |
vec< T > & | operator*= (const vec< S > &v) |
in place componentwise vector multiplication | |
template<typename S > | |
vec< T > & | operator/= (const vec< S > &v) |
in place componentwise vector division | |
template<typename S > | |
const vec< T > | operator+ (const vec< S > &v) const |
vector addition | |
const vec< T > | operator+ (const T &s) const |
componentwise addition of scalar | |
const vec< T > | operator- (const T &s) const |
componentwise subtraction of scalar | |
template<typename S > | |
vec< T > | operator- (const vec< S > &v) const |
vector subtraction | |
template<typename S > | |
const vec< T > | operator* (const vec< S > &v) const |
componentwise vector multiplication | |
template<typename S > | |
const vec< T > | operator/ (const vec< S > &v) const |
componentwise vector division | |
vec< T > | operator- (void) const |
negates the vector | |
vec< T > | operator* (const T &s) const |
multiplication with scalar s | |
vec< T > | operator/ (const T &s) const |
divides vector by scalar s | |
void | fill (const T &v) |
fill elements of vector with scalar v | |
void | zeros () |
fill the vector with zeros | |
void | ones () |
fill the vector with ones | |
void | zeros (unsigned n) |
resize the vector to size n and fills the vector with zeros | |
void | ones (unsigned n) |
resize the vector to size n and fills thevector with ones | |
void | resize (unsigned dim) |
resize the vector | |
template<typename S > | |
bool | operator== (const vec< S > &v) const |
test for equality | |
template<typename S > | |
bool | operator!= (const vec< S > &v) const |
test for inequality | |
T | length () const |
length of the vector L2-Norm | |
void | abs () |
componentwise absolute values | |
void | ceil () |
ceil componentwise | |
void | floor () |
floor componentwise | |
void | round () |
round componentwise | |
T | sqr_length () const |
square length of vector | |
void | normalize () |
normalize the vector using the L2-Norm | |
void | safe_normalize () |
normalize the vector if length is not zero using the L2-Norm | |
vec< T > | sub_vec (unsigned ifrom, unsigned size) const |
extracts sub vector beginning at index ifrom with given size | |
void | copy (unsigned ifrom, unsigned s, vec< T > &subvec) const |
copy sub vector beginning at index ifrom with given size s into subvec | |
void | paste (unsigned ifrom, const vec< T > &v) |
paste v into vector beginning at index pos ifrom | |
Protected Attributes | |
T * | _data |
pointer to _data storage | |
unsigned | _size |
number or elements | |
bool | data_is_external |
store whether data is not owned by vector | |
A column vector class.
typedef const T* cgv::math::vec< T >::const_iterator |
typedef const T* cgv::math::vec< T >::const_pointer |
typedef const T& cgv::math::vec< T >::const_reference |
typedef std::reverse_iterator<const_iterator> cgv::math::vec< T >::const_reverse_iterator |
typedef std::ptrdiff_t cgv::math::vec< T >::difference_type |
typedef T* cgv::math::vec< T >::iterator |
typedef T* cgv::math::vec< T >::pointer |
typedef T& cgv::math::vec< T >::reference |
typedef std::reverse_iterator<iterator> cgv::math::vec< T >::reverse_iterator |
typedef std::size_t cgv::math::vec< T >::size_type |
typedef T cgv::math::vec< T >::value_type |
|
inline |
|
inlineexplicit |
creates a vector with dim elements
Definition at line 65 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::data_is_external, and cgv::math::vec< T >::dim().
|
inline |
creates a vector with dim elements from an array
Definition at line 76 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::data_is_external, and cgv::math::vec< T >::dim().
|
inline |
copy constructor for vectors with equal element type
Definition at line 87 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::data_is_external, and cgv::math::vec< T >::size().
copy constructor for vectors with different element type
Definition at line 99 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::data_is_external, and cgv::math::vec< T >::size().
|
inline |
creates a 2d vector (c0,c1)^T
Definition at line 111 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, and cgv::math::vec< T >::data_is_external.
|
inline |
creates a 3d vector (c0,c1,c2)^T
Definition at line 119 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, and cgv::math::vec< T >::data_is_external.
|
inline |
creates a 4d vector (c0,c1,c2,c3)^T
Definition at line 130 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, and cgv::math::vec< T >::data_is_external.
|
inlinevirtual |
|
inline |
componentwise absolute values
Definition at line 547 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
|
inline |
|
inline |
ceil componentwise
Definition at line 557 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, and cgv::math::vec< T >::ceil().
Referenced by cgv::math::vec< T >::ceil().
|
inline |
copy sub vector beginning at index ifrom with given size s into subvec
Definition at line 619 of file vec.h.
References cgv::math::vec< T >::operator()(), and cgv::math::vec< T >::size().
|
inline |
cast into non const array
Definition at line 192 of file vec.h.
References cgv::math::vec< T >::_data.
Referenced by cgv::media::mesh::dual_contouring< X, T >::compute_cell_vertex(), cgv::render::gl::gl_implicit_surface_drawable_base::new_vertex(), and cgv::math::vec< T >::set_extern_data().
|
inline |
|
inline |
|
inline |
number of elements
Definition at line 61 of file vec.h.
References cgv::math::vec< T >::_size.
Referenced by cgv::math::fvec< T, N >::from_vec(), cgv::math::diag_mat< T >::operator*(), cgv::math::vec< T >::resize(), cgv::math::vec< T >::set_extern_data(), cgv::math::vec< T >::vec(), and cgv::math::vec< T >::vec().
|
inline |
|
inline |
|
inline |
fill elements of vector with scalar v
Definition at line 463 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
Referenced by cgv::math::vec< T >::ones(), cgv::math::vec< T >::ones(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::zeros(), and cgv::math::vec< T >::zeros().
|
inline |
element accessor for the first element
Definition at line 255 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
Referenced by cgv::math::qem< T >::scalar_part(), and cgv::math::qem< T >::set().
|
inline |
const element accessor for the first element
Definition at line 262 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
floor componentwise
Definition at line 564 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, and cgv::math::vec< T >::floor().
Referenced by cgv::math::vec< T >::floor(), and cgv::math::vec< T >::round().
|
inline |
element accessor for the flast element
Definition at line 268 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
const element accessor for the last element
Definition at line 274 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
length of the vector L2-Norm
Definition at line 541 of file vec.h.
References cgv::math::vec< T >::sqr_length().
Referenced by cgv::math::vec< T >::normalize(), and cgv::math::vec< T >::safe_normalize().
|
inline |
normalize the vector using the L2-Norm
Definition at line 588 of file vec.h.
References cgv::math::vec< T >::_size, and cgv::math::vec< T >::length().
Referenced by cgv::math::random::uniform_direction(), cgv::math::random::uniform_direction(), and cgv::math::random::uniform_point_on_sphere().
|
inline |
fill the vector with ones
Definition at line 476 of file vec.h.
References cgv::math::vec< T >::fill().
|
inline |
resize the vector to size n and fills thevector with ones
Definition at line 489 of file vec.h.
References cgv::math::vec< T >::fill(), and cgv::math::vec< T >::resize().
|
inline |
|
inline |
element accessor
Definition at line 233 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
Referenced by cgv::math::vec< T >::copy(), and cgv::math::vec< T >::sub_vec().
|
inline |
const element accessor
Definition at line 240 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
|
inline |
|
inline |
in place multiplication with s
Definition at line 352 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
in place componentwise vector multiplication
Definition at line 381 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
|
inline |
|
inline |
in place addition of a scalar s
Definition at line 336 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
in place vector addition
Definition at line 365 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
|
inline |
|
inline |
|
inline |
in place subtraction by scalar s
Definition at line 344 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
in place vector subtraction
Definition at line 373 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
|
inline |
|
inline |
in place division by scalar s
Definition at line 358 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
in place componentwise vector division
Definition at line 389 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
assignment of a scalar s
Definition at line 217 of file vec.h.
References cgv::math::vec< T >::fill().
|
inline |
assignment of a vector v
Definition at line 225 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::resize(), and cgv::math::vec< T >::size().
|
inline |
assignment of a vector v
Definition at line 204 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::resize(), and cgv::math::vec< T >::size().
|
inline |
|
inline |
element accessor
Definition at line 245 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
const element accessor
Definition at line 250 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
paste v into vector beginning at index pos ifrom
Definition at line 629 of file vec.h.
References cgv::math::vec< T >::size().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
resize the vector
Definition at line 496 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::data_is_external, and cgv::math::vec< T >::dim().
Referenced by cgv::media::plane< T >::get_normal(), cgv::math::vec< T >::ones(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::operator=(), cgv::media::plane< T >::plane(), cgv::media::plane< T >::plane(), cgv::math::qem< T >::resize(), cgv::math::perm_mat::resize(), cgv::media::sphere< T, N >::sphere(), cgv::math::random::uniform_nchoosek(), cgv::math::random::uniform_point_in_box(), cgv::math::random::uniform_point_in_unit_box(), and cgv::math::vec< T >::zeros().
|
inline |
round componentwise
Definition at line 571 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, and cgv::math::vec< T >::floor().
|
inline |
normalize the vector if length is not zero using the L2-Norm
Definition at line 596 of file vec.h.
References cgv::math::vec< T >::_size, and cgv::math::vec< T >::length().
|
inline |
set entries of a 2d vector
Definition at line 142 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
set entries of a 3d vector
Definition at line 150 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
set entries of a 4d vector
Definition at line 159 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
set data pointer to an external data array
Definition at line 168 of file vec.h.
References cgv::math::vec< T >::_data, cgv::math::vec< T >::_size, cgv::math::vec< T >::data(), cgv::math::vec< T >::data_is_external, and cgv::math::vec< T >::dim().
Referenced by cgv::math::fvec< T, N >::to_vec().
|
inline |
number of elements
Definition at line 59 of file vec.h.
References cgv::math::vec< T >::_size.
Referenced by cgv::media::axis_aligned_box< T, N >::add_point(), cgv::media::axis_aligned_box< T, N >::axis_aligned_box(), cgv::media::mesh::dual_contouring< X, T >::compute_cell_vertex(), cgv::math::vec< T >::copy(), cgv::math::qem< T >::dim(), cgv::math::mfunc< X, T >::evaluate_gradient(), cgv::media::plane< T >::get_distance(), cgv::media::plane< T >::get_normal(), cgv::render::array_descriptor_traits< cgv::math::vec< T > >::get_nr_elements(), cgv::render::array_descriptor_traits< cgv::math::vec< T > >::get_size(), cgv::math::perm_mat::identity(), cgv::math::thin_plate_spline< T >::map_position(), cgv::math::thin_hyper_plate_spline< T >::map_position(), cgv::math::qem< T >::minarg(), cgv::math::perm_mat::ncols(), cgv::render::gl::gl_implicit_surface_drawable_base::new_vertex(), cgv::math::perm_mat::nrows(), cgv::math::qem< T >::operator!=(), cgv::math::mat< T >::operator*(), cgv::math::sparse_mat< T >::operator*(), cgv::math::qem< T >::operator+=(), cgv::math::qem< T >::operator-=(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::operator=(), cgv::math::qem< T >::operator==(), cgv::math::vec< T >::paste(), cgv::media::plane< T >::plane(), cgv::render::context::put_cursor_coords(), cgv::math::qem< T >::set(), cgv::plot::plot_base::set_extent(), cgv::math::perm_mat::size(), cgv::media::sphere< T, N >::sphere(), cgv::math::vec< T >::sub_vec(), cgv::plot::plot_base::transform_to_world(), cgv::math::perm_mat::transpose(), cgv::math::sparse_mat< T >::transpose(), cgv::math::random::uniform(), cgv::math::random::uniform(), cgv::math::random::uniform(), cgv::math::random::uniform(), cgv::math::random::uniform_direction(), cgv::math::random::uniform_direction(), cgv::math::random::uniform_point_in_box(), cgv::math::random::uniform_point_in_unit_ball(), cgv::math::random::uniform_point_in_unit_box(), cgv::math::random::uniform_point_on_sphere(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), and cgv::math::qem< T >::vector_part().
|
inline |
square length of vector
Definition at line 579 of file vec.h.
References cgv::math::vec< T >::_size.
Referenced by cgv::math::vec< T >::length(), and cgv::math::qem< T >::minarg().
|
inline |
extracts sub vector beginning at index ifrom with given size
Definition at line 607 of file vec.h.
References cgv::math::vec< T >::operator()(), and cgv::math::vec< T >::size().
|
inline |
element accessor for the fourth element
Definition at line 322 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
const element accessor for the fourth element
Definition at line 329 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
element accessor for the first element
Definition at line 280 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
const element accessor for the first element
Definition at line 287 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
element accessor for the second element
Definition at line 294 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
Referenced by cgv::math::qem< T >::minarg().
|
inline |
const element accessor for the second element
Definition at line 301 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
element accessor for the third element
Definition at line 308 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
const element accessor for the third element
Definition at line 315 of file vec.h.
References cgv::math::vec< T >::_data, and cgv::math::vec< T >::_size.
|
inline |
fill the vector with zeros
Definition at line 470 of file vec.h.
References cgv::math::vec< T >::fill().
Referenced by cgv::plot::domain_config::domain_config(), cgv::math::mat< T >::operator*(), cgv::math::sparse_mat< T >::operator*(), cgv::math::qem< T >::qem(), and cgv::math::sparse_mat< T >::transpose().
|
inline |
resize the vector to size n and fills the vector with zeros
Definition at line 482 of file vec.h.
References cgv::math::vec< T >::fill(), and cgv::math::vec< T >::resize().
|
protected |
pointer to _data storage
Definition at line 32 of file vec.h.
Referenced by cgv::math::vec< T >::abs(), cgv::math::vec< T >::ceil(), cgv::math::vec< T >::data(), cgv::math::vec< T >::data(), cgv::math::vec< T >::fill(), cgv::math::vec< T >::first(), cgv::math::vec< T >::first(), cgv::math::vec< T >::floor(), cgv::math::vec< T >::last(), cgv::math::vec< T >::last(), cgv::math::vec< T >::operator()(), cgv::math::vec< T >::operator()(), cgv::math::vec< T >::operator*=(), cgv::math::vec< T >::operator*=(), cgv::math::vec< T >::operator+=(), cgv::math::vec< T >::operator+=(), cgv::math::vec< T >::operator-=(), cgv::math::vec< T >::operator-=(), cgv::math::vec< T >::operator/=(), cgv::math::vec< T >::operator/=(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::operator[](), cgv::math::vec< T >::operator[](), cgv::math::vec< T >::resize(), cgv::math::vec< T >::round(), cgv::math::vec< T >::set(), cgv::math::vec< T >::set(), cgv::math::vec< T >::set(), cgv::math::vec< T >::set_extern_data(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::w(), cgv::math::vec< T >::w(), cgv::math::vec< T >::x(), cgv::math::vec< T >::x(), cgv::math::vec< T >::y(), cgv::math::vec< T >::y(), cgv::math::vec< T >::z(), and cgv::math::vec< T >::z().
|
protected |
number or elements
Definition at line 34 of file vec.h.
Referenced by cgv::math::vec< T >::abs(), cgv::math::vec< T >::ceil(), cgv::math::vec< T >::dim(), cgv::math::vec< T >::fill(), cgv::math::vec< T >::first(), cgv::math::vec< T >::first(), cgv::math::vec< T >::floor(), cgv::math::vec< T >::last(), cgv::math::vec< T >::last(), cgv::math::vec< T >::normalize(), cgv::math::vec< T >::operator!=(), cgv::math::vec< T >::operator()(), cgv::math::vec< T >::operator()(), cgv::math::vec< T >::operator*=(), cgv::math::vec< T >::operator*=(), cgv::math::vec< T >::operator+=(), cgv::math::vec< T >::operator+=(), cgv::math::vec< T >::operator-=(), cgv::math::vec< T >::operator-=(), cgv::math::vec< T >::operator/=(), cgv::math::vec< T >::operator/=(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::operator=(), cgv::math::vec< T >::operator==(), cgv::math::vec< T >::operator[](), cgv::math::vec< T >::operator[](), cgv::math::vec< T >::resize(), cgv::math::vec< T >::round(), cgv::math::vec< T >::safe_normalize(), cgv::math::vec< T >::set(), cgv::math::vec< T >::set(), cgv::math::vec< T >::set(), cgv::math::vec< T >::set_extern_data(), cgv::math::vec< T >::size(), cgv::math::vec< T >::sqr_length(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::w(), cgv::math::vec< T >::w(), cgv::math::vec< T >::x(), cgv::math::vec< T >::x(), cgv::math::vec< T >::y(), cgv::math::vec< T >::y(), cgv::math::vec< T >::z(), and cgv::math::vec< T >::z().
|
protected |
store whether data is not owned by vector
Definition at line 36 of file vec.h.
Referenced by cgv::math::vec< T >::resize(), cgv::math::vec< T >::set_extern_data(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), cgv::math::vec< T >::vec(), and cgv::math::vec< T >::vec().