|
Hugin trunk 0.1
|
general : Vector3 is a class for handling 3D Vectors manipulation. More...
#include <Vector3.h>
Public Attributes | |
| double | x |
| x,y,z coordinates, 0 at the initialisation | |
| double | y |
| double | z |
Friends | |
| Vector3 | operator* (double Scale, const Vector3 &v) |
| operator * | |
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.
|
inline |
cross product
Definition at line 163 of file Vector3.h.
References threshold().
Referenced by HuginBase::StraightenPanorama::calcStraighteningRotation(), and PanosphereOverviewToolHelper::MouseMoved().
| Vector3 Vector3::GetNormalized | ( | ) | const |
return a normalized vector
Definition at line 95 of file Vector3.cpp.
References EPSILON, threshold(), x, y, and z.
Referenced by GetRotationAroundU(), and PanosphereOverviewToolHelper::MouseMoved().
comparison : nearly equal
Definition at line 45 of file Vector3.cpp.
References EPSILON, threshold(), x, y, and z.
| bool Vector3::IsNearlyZero | ( | ) | const |
comparison : nearly zero
Definition at line 39 of file Vector3.cpp.
References EPSILON, threshold(), x, y, and z.
| bool Vector3::IsZero | ( | ) | const |
| double Vector3::Norm | ( | ) | const |
| bool Vector3::Normalize | ( | ) |
| double Vector3::NormSquared | ( | ) | const |
operator /(double)
Definition at line 51 of file Vector3.cpp.
References threshold(), Vector3(), x, y, and z.
| double Vector3::x |
x,y,z coordinates, 0 at the initialisation
Definition at line 47 of file Vector3.h.
Referenced by HuginBase::StraightenPanorama::calcStraighteningRotation(), GetNormalized(), IsNearlyEqual(), IsNearlyZero(), IsZero(), PanosphereOverviewToolHelper::MouseMoved(), Norm(), Normalize(), NormSquared(), operator+=(), operator-=(), operator/(), operator/=(), operator=(), HuginBase::Nona::persp_rect(), Set(), and Matrix3::TransformVector().
| double Vector3::y |
Definition at line 47 of file Vector3.h.
Referenced by GetNormalized(), IsNearlyEqual(), IsNearlyZero(), IsZero(), PanosphereOverviewToolHelper::MouseMoved(), DragTool::ParamStore::Move(), Norm(), Normalize(), NormSquared(), operator/(), operator/=(), and Set().
| double Vector3::z |
Definition at line 47 of file Vector3.h.
Referenced by GetNormalized(), IsNearlyEqual(), IsNearlyZero(), IsZero(), PanosphereOverviewToolHelper::MouseMoved(), Norm(), Normalize(), NormSquared(), operator/(), operator/=(), and Set().