Vector3 Class Reference
general : Vector3 is a class for handling 3D Vectors manipulation. More...
#include <Vector3.h>
Public Member Functions | |
| Vector3 () | |
| default constructor | |
| Vector3 (double a, double b, double c) | |
| constructor with initialisation | |
| Vector3 (const Vector3 &v) | |
| copy contructor | |
| Vector3 & | operator= (const Vector3 &v) |
| copy operator | |
| void | Set (double a, double b, double c) |
| set | |
| bool | operator== (const Vector3 &v) const |
| comparison : equality | |
| bool | operator!= (const Vector3 &v) const |
| comparison : not equal | |
| bool | IsZero () const |
| comparison : zero | |
| bool | IsNearlyZero () const |
| comparison : nearly zero | |
| bool | IsNearlyEqual (const Vector3 &v) const |
| comparison : nearly equal | |
| Vector3 | operator+ (const Vector3 &v) const |
| operator + | |
| Vector3 | operator- (const Vector3 &v) const |
| operator - | |
| Vector3 | operator * (double Scale) const |
| operator *(double) | |
| Vector3 | operator/ (double Scale) const |
| operator /(double) | |
| Vector3 | operator- () const |
| Unary minus. | |
| Vector3 | operator+= (const Vector3 &v) |
| operator += | |
| Vector3 | operator-= (const Vector3 &v) |
| operator -= | |
| Vector3 | operator *= (double Scale) |
| double multiply | |
| Vector3 | operator/= (double Scale) |
| double divide | |
| double | Norm () const |
| euclidien norm | |
| double | NormSquared () const |
| squared norm | |
| Vector3 | Cross (const Vector3 &v) const |
| cross product | |
| double | Dot (const Vector3 &v) const |
| dot product | |
| bool | Normalize () |
| Normalize. | |
| Vector3 | GetNormalized () const |
| return a normalized vector | |
Public Attributes | |
| double | x |
| x,y,z coordinates, 0 at the initialisation | |
| double | y |
| x,y,z coordinates, 0 at the initialisation | |
| double | z |
| x,y,z coordinates, 0 at the initialisation | |
Friends | |
| Vector3 | operator * (double Scale, const Vector3 &v) |
| operator * | |
Detailed Description
general : Vector3 is a class for handling 3D Vectors manipulation.We made a choose to store only a 3 dimensions vectors to speed up system when we change of view point. A general 3D transformation could be placed in a 4x4 matrix, but some of the coefficients are always null. So that's waste of time.
Constructor & Destructor Documentation
|
|
default constructor
|
|
||||||||||||||||
|
constructor with initialisation
|
|
|
copy contructor
|
Member Function Documentation
|
|
cross product
|
|
|
dot product
|
|
|
return a normalized vector
|
|
|
comparison : nearly equal
|
|
|
comparison : nearly zero
|
|
|
comparison : zero
|
|
|
euclidien norm
|
|
|
Normalize.
|
|
|
squared norm
|
|
|
operator *(double)
|
|
|
double multiply
|
|
|
comparison : not equal
|
|
|
operator +
|
|
|
operator +=
|
|
|
Unary minus.
|
|
|
operator -
|
|
|
operator -=
|
|
|
operator /(double)
|
|
|
double divide
|
|
|
copy operator
|
|
|
comparison : equality
|
|
||||||||||||||||
|
set
|
Friends And Related Function Documentation
|
||||||||||||
|
operator *
|
Member Data Documentation
|
|
x,y,z coordinates, 0 at the initialisation
|
|
|
x,y,z coordinates, 0 at the initialisation
|
|
|
x,y,z coordinates, 0 at the initialisation
|
The documentation for this class was generated from the following files:
- hugin_base/hugin_math/Vector3.h
- hugin_base/hugin_math/Vector3.cpp
1.3.9.1