#include <vgl_vector_3d.h>
Inheritance diagram for vgl_vector_3d< T >:

(typically float or double). A vgl_vector_3d<T> represents the difference (or connecting vector) between two vgl_point_3d<T>s.
Use this class to do arithmetic (adding and scaling) in 3d geometric space.
Definition at line 29 of file vgl_vector_3d.h.
Public Member Functions | |
| T | x () const |
| T | y () const |
| T | z () const |
| vgl_vector_3d () | |
| Creates the vector (0,0,0) of zero length. | |
| vgl_vector_3d (T vx, T vy, T vz) | |
| Creates the vector (vx,vy,vz). | |
| vgl_vector_3d (const T v[3]) | |
| Creates the vector (vx,vy,vz). | |
| void | set (T vx, T vy, T vz) |
| Assignment. | |
| void | set (T const v[3]) |
| Set x, y and z. | |
| bool | operator== (vgl_vector_3d< T >const &v) const |
| Comparison. | |
| bool | operator!= (vgl_vector_3d< T >const &v) const |
| double | length () const |
| Return the length of this vector. | |
| T | sqr_length () const |
| Return the squared length of this vector. | |
| vgl_vector_3d< T > | orthogonal_vectors (double s) |
| One-parameter family of unit vectors that are orthogonal to *this, v(s). | |
Public Attributes | |
| T | x_ |
| T | y_ |
| T | z_ |
|
|||||||||
|
Creates the vector (0,0,0) of zero length.
Definition at line 40 of file vgl_vector_3d.h. |
|
||||||||||||||||||||
|
Creates the vector (vx,vy,vz).
Definition at line 43 of file vgl_vector_3d.h. |
|
||||||||||
|
Creates the vector (vx,vy,vz).
Definition at line 46 of file vgl_vector_3d.h. |
|
|||||||||
|
Return the length of this vector.
Definition at line 14 of file vgl_vector_3d.txx. |
|
||||||||||
|
Definition at line 67 of file vgl_vector_3d.h. |
|
||||||||||
|
Comparison.
Definition at line 65 of file vgl_vector_3d.h. |
|
||||||||||
|
One-parameter family of unit vectors that are orthogonal to *this, v(s). The parameterization is such that 0<=s<1, v(0)==v(1) Definition at line 22 of file vgl_vector_3d.txx. |
|
||||||||||
|
Set x, y and z.
Definition at line 62 of file vgl_vector_3d.h. |
|
||||||||||||||||||||
|
Assignment.
Definition at line 59 of file vgl_vector_3d.h. |
|
|||||||||
|
Return the squared length of this vector.
Definition at line 73 of file vgl_vector_3d.h. |
|
|||||||||
|
Definition at line 35 of file vgl_vector_3d.h. |
|
|||||||||
|
Definition at line 36 of file vgl_vector_3d.h. |
|
|||||||||
|
Definition at line 37 of file vgl_vector_3d.h. |
|
|||||
|
Definition at line 32 of file vgl_vector_3d.h. |
|
|||||
|
Definition at line 33 of file vgl_vector_3d.h. |
|
|||||
|
Definition at line 34 of file vgl_vector_3d.h. |
1.4.4