| geolib2
    | 
#include <math_types.h>
| Public Member Functions | |
| Vec3T | cross (const Vec3T &v) const | 
| returns cross product  More... | |
| T | dot (const Vec3T &v) const | 
| returns dot product  More... | |
| T | getX () const | 
| T | getY () const | 
| T | getZ () const | 
| T | length () const | 
| Returns the length of the vector.  More... | |
| T | length2 () const | 
| Returns the squared length of the vector.  More... | |
| void | normalize () | 
| Normalizes the vector.  More... | |
| Vec3T | normalized () const | 
| Returns the normalized version of the vector.  More... | |
| bool | operator!= (const Vec3T &v) const | 
| Vec3T | operator* (T s) const | 
| multiplies vector with a scalar  More... | |
| Vec3T & | operator*= (const Vec3T &v) | 
| Vec3T & | operator*= (T s) | 
| Vec3T | operator+ (const Vec3T &v) const | 
| returns addition with v  More... | |
| Vec3T & | operator+= (const Vec3T &v) | 
| Vec3T | operator- (const Vec3T &v) const | 
| returns this minus v  More... | |
| Vec3T & | operator-= (const Vec3T &v) | 
| Vec3T | operator/ (T s) const | 
| divides vector by scalar  More... | |
| Vec3T & | operator/= (const Vec3T &v) | 
| Vec3T & | operator/= (T s) | 
| Vec3T & | operator= (const Vec3T &v) | 
| bool | operator== (const Vec3T &v) const | 
| T & | operator[] (const uint i) | 
| const T & | operator[] (const uint i) const | 
| Vec2T< T > | projectTo2d () const | 
| Drop the displacement of the 3rd coordinate.  More... | |
| Vec3T () | |
| Vec3T (const T *values) | |
| Vec3T (const Vec3T &v)=default | |
| Vec3T (T value) | |
| Vec3T (T x_, T y_, T z_) | |
| ~Vec3T () | |
| Public Attributes | |
| union { | |
| struct { | |
| T x | |
| T y | |
| T z | |
| } | |
| T m [3] | |
| }; | |
| Friends | |
| Vec3T | operator* (T s, const Vec3T &v) | 
| multiplies vector with a scalar  More... | |
| Vec3T | operator- (const Vec3T &v) | 
| std::ostream & | operator<< (std::ostream &out, const Vec3T &v) | 
Definition at line 13 of file math_types.h.
| 
 | inline | 
Definition at line 126 of file math_types.h.
| 
 | default | 
| 
 | inline | 
Definition at line 128 of file math_types.h.
| 
 | inline | 
Definition at line 129 of file math_types.h.
| 
 | inline | 
Definition at line 130 of file math_types.h.
| 
 | inline | 
Definition at line 141 of file math_types.h.
| 
 | inline | 
returns cross product
Definition at line 159 of file math_types.h.
| 
 | inline | 
returns dot product
Definition at line 156 of file math_types.h.
| 
 | inline | 
Definition at line 198 of file math_types.h.
| 
 | inline | 
Definition at line 199 of file math_types.h.
| 
 | inline | 
Definition at line 200 of file math_types.h.
| 
 | inline | 
Returns the length of the vector.
Definition at line 177 of file math_types.h.
| 
 | inline | 
Returns the squared length of the vector.
Definition at line 180 of file math_types.h.
| 
 | inline | 
Normalizes the vector.
Definition at line 186 of file math_types.h.
| 
 | inline | 
Returns the normalized version of the vector.
Definition at line 183 of file math_types.h.
| 
 | inline | 
Definition at line 151 of file math_types.h.
| 
 | inline | 
multiplies vector with a scalar
Definition at line 168 of file math_types.h.
| 
 | inline | 
Definition at line 192 of file math_types.h.
| 
 | inline | 
Definition at line 195 of file math_types.h.
| 
 | inline | 
returns addition with v
Definition at line 162 of file math_types.h.
| 
 | inline | 
Definition at line 190 of file math_types.h.
| 
 | inline | 
returns this minus v
Definition at line 165 of file math_types.h.
| 
 | inline | 
Definition at line 191 of file math_types.h.
| 
 | inline | 
divides vector by scalar
Definition at line 171 of file math_types.h.
| 
 | inline | 
Definition at line 193 of file math_types.h.
| 
 | inline | 
Definition at line 196 of file math_types.h.
| 
 | inline | 
Definition at line 132 of file math_types.h.
| 
 | inline | 
Definition at line 147 of file math_types.h.
| 
 | inline | 
Definition at line 143 of file math_types.h.
| 
 | inline | 
Definition at line 145 of file math_types.h.
| 
 | inline | 
Drop the displacement of the 3rd coordinate.
Definition at line 206 of file math_types.h.
multiplies vector with a scalar
Definition at line 174 of file math_types.h.
Definition at line 188 of file math_types.h.
| 
 | friend | 
Definition at line 211 of file math_types.h.
| union { ... } | 
| T geo::Vec3T< T >::m[3] | 
Definition at line 218 of file math_types.h.
| T geo::Vec3T< T >::x | 
Definition at line 217 of file math_types.h.
| T geo::Vec3T< T >::y | 
Definition at line 217 of file math_types.h.
| T geo::Vec3T< T >::z | 
Definition at line 217 of file math_types.h.
 1.8.17
 1.8.17