|
| | vecng () |
| | Default vector constructor.
|
| |
| | vecng (const T &x_in, const T &y_in, const T &z_in) |
| | Constructs a vector from coordinates.
|
| |
| | vecng (T &&x_in, T &&y_in, T &&z_in) |
| | Constructs a vector from coordinates.
|
| |
|
| vecng (const vecng< 3, T > &rhs)=default |
| |
|
| vecng (vecng< 3, T > &&rhs)=default |
| |
| template<class T2 > |
| | vecng (const vecng< dim, T2 > &v) |
| | Constructs a vector by copy.
|
| |
| template<class T2 > |
| | vecng (const T2 *v) |
| | Constructs a vector from an array.
|
| |
| | vecng (const std::initializer_list< T > &Vi) |
| |
|
vecng< 3, T > & | operator= (const vecng< 3, T > &rhs)=default |
| |
|
vecng< 3, T > & | operator= (vecng< 3, T > &&rhs)=default |
| |
| template<typename A , typename B > |
| | vecng (const vecng< 2, A > &_xy, B _z) |
| | Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
| |
| template<typename A , typename B > |
| | vecng (const vecng< 2, A > &_xy, const vecng< 1, B > &_z) |
| | Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
| |
| template<typename A , typename B > |
| | vecng (A _x, const vecng< 2, B > &_yz) |
| | Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
| |
| template<typename A , typename B > |
| | vecng (const vecng< 1, A > &_x, const vecng< 2, B > &_yz) |
| | Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
| |
| template<typename U > |
| | vecng (vecng< 4, U > const &v) |
| | Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
| |
| T | length2 () const |
| | Gets the squared length of the vector.
|
| |
| T | length () const |
| | Gets the length of the vector.
|
| |
| T | distance2 (const vector_type &v) const |
| |
| T | distance (const vector_type &v) const |
| |
| vector_type & | operator+= (const vector_type &v) |
| |
| vector_type & | operator-= (const vector_type &v) |
| |
| template<class T2 > |
| vector_type & | operator*= (T2 s) |
| | Multiplies by a scalar in place.
|
| |
| template<class T2 > |
| vector_type & | operator/= (T2 s) |
| | Divides by a scalar in place.
|
| |
| vector_type | operator+ (const vector_type &v) const |
| |
| vector_type | operator- (const vector_type &v) const |
| |
| template<class T2 > |
| vector_type | operator/ (T2 s) const |
| | Divides a vector by a scalar.
|
| |
| vector_type | operator- () const |
| | Negates a vector.
|
| |
| index_t | dimension () const |
| | Gets the vector dimension.
|
| |
| T * | data () |
| | Gets modifiable vector data.
|
| |
| const T * | data () const |
| | Gets non-modifiable vector data.
|
| |
| T & | operator[] (index_t i) |
| | Gets a modifiable vector coordinate.
|
| |
| const T & | operator[] (index_t i) const |
| | Gets a non-modifiable vector coordinate.
|
| |
| void | optimize () |
| | Optimizes coordinate representation.
|
| |
template<class T>
class GEO::vecng< 3, T >
Specialization of class vecng for DIM == 3.
- See also
- vecng
Definition at line 773 of file vecg.h.