#include <Wm4Vector3.h>
Public Member Functions | |
Vector3 | Cross (const Vector3 &rkV) const |
Real | Dot (const Vector3 &rkV) const |
void | GetBarycentrics (const Vector3 &rkV0, const Vector3 &rkV1, const Vector3 &rkV2, const Vector3 &rkV3, Real afBary[4]) const |
Real | Length () const |
Real | Normalize () |
operator const Real * () const | |
operator Real * () | |
bool | operator!= (const Vector3 &rkV) const |
Vector3 | operator* (Real fScalar) const |
Vector3 & | operator*= (Real fScalar) |
Vector3 | operator+ (const Vector3 &rkV) const |
Vector3 & | operator+= (const Vector3 &rkV) |
Vector3 | operator- () const |
Vector3 | operator- (const Vector3 &rkV) const |
Vector3 & | operator-= (const Vector3 &rkV) |
Vector3 | operator/ (Real fScalar) const |
Vector3 & | operator/= (Real fScalar) |
bool | operator< (const Vector3 &rkV) const |
bool | operator<= (const Vector3 &rkV) const |
Vector3 & | operator= (const Vector3 &rkV) |
bool | operator== (const Vector3 &rkV) const |
bool | operator> (const Vector3 &rkV) const |
bool | operator>= (const Vector3 &rkV) const |
Real & | operator[] (int i) |
Real | operator[] (int i) const |
Real | SquaredLength () const |
Vector3 | UnitCross (const Vector3 &rkV) const |
Vector3 (const Vector3 &rkV) | |
Vector3 (const Real *afTuple) | |
Vector3 (Real fX, Real fY, Real fZ) | |
Vector3 () | |
Real & | X () |
Real | X () const |
Real & | Y () |
Real | Y () const |
Real & | Z () |
Real | Z () const |
Static Public Member Functions | |
static void | ComputeExtremes (int iVQuantity, const Vector3 *akPoint, Vector3 &rkMin, Vector3 &rkMax) |
static void | GenerateComplementBasis (Vector3 &rkU, Vector3 &rkV, const Vector3 &rkW) |
static void | GenerateOrthonormalBasis (Vector3 &rkU, Vector3 &rkV, Vector3 &rkW) |
static void | Orthonormalize (Vector3 *akV) |
static void | Orthonormalize (Vector3 &rkU, Vector3 &rkV, Vector3 &rkW) |
Static Public Attributes | |
static const Vector3 | ONE |
static const Vector3 | UNIT_X |
static const Vector3 | UNIT_Y |
static const Vector3 | UNIT_Z |
static const Vector3 | ZERO |
Definition at line 27 of file Wm4Vector3.h.
Wm4::Vector3< Real >::Vector3 | ( | ) | [inline] |
Definition at line 21 of file Wm4Vector3.inl.
Referenced by Wm4::Vector3< Real >::Cross(), Wm4::Vector3< Real >::operator*(), Wm4::Vector3< Real >::operator+(), and Wm4::Vector3< Real >::operator-().
Wm4::Vector3< Real >::Vector3 | ( | Real | fX, | |
Real | fY, | |||
Real | fZ | |||
) | [inline] |
Definition at line 27 of file Wm4Vector3.inl.
Wm4::Vector3< Real >::Vector3 | ( | const Real * | afTuple | ) | [inline] |
Definition at line 35 of file Wm4Vector3.inl.
Wm4::Vector3< Real >::Vector3 | ( | const Vector3< Real > & | rkV | ) | [inline] |
Definition at line 43 of file Wm4Vector3.inl.
void Wm4::Vector3< Real >::ComputeExtremes | ( | int | iVQuantity, | |
const Vector3< Real > * | akPoint, | |||
Vector3< Real > & | rkMin, | |||
Vector3< Real > & | rkMax | |||
) | [inline, static] |
Definition at line 655 of file Wm4Vector3.inl.
Vector3< Real > Wm4::Vector3< Real >::Cross | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 326 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Vector3().
Referenced by Wm4::ParametricSurface< Real >::ComputePrincipalCurvatureInfo(), Wm4::Vector3< Real >::GetBarycentrics(), Wm4::ParametricSurface< Real >::GetFrame(), Wm4::MeshCurvature< Real >::MeshCurvature(), and Wm4::MeshSmoother< Real >::Update().
Real Wm4::Vector3< Real >::Dot | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 294 of file Wm4Vector3.inl.
Referenced by Wm4::ParametricSurface< Real >::ComputePrincipalCurvatureInfo(), Wm4::CylinderFit3< Real >::CylinderFit3(), Wm4::Triangle3< Real >::DistanceTo(), Wm4::IntrLine3Box3< Real >::DoClipping(), Wm4::QuadricSurface< Real >::F(), Wm4::IntrTriangle3Triangle3< Real >::Find(), MeshCore::PlaneFit::Fit(), Wm4::Vector3< Real >::GetBarycentrics(), Wm4::DistVector3Triangle3< Real >::GetSquared(), Wm4::DistSegment3Segment3< Real >::GetSquared(), Wm4::DistLine3Triangle3< Real >::GetSquared(), Wm4::DistLine3Segment3< Real >::GetSquared(), Wm4::Matrix4< Real >::MakeObliqueProjection(), Wm4::Matrix4< Real >::MakePerspectiveProjection(), Wm4::Matrix4< Real >::MakeReflection(), Wm4::Mapper3< Real >::Mapper3(), Wm4::MeshCurvature< Real >::MeshCurvature(), Wm4::Vector3< Real >::Orthonormalize(), Wm4::Plane3< Real >::Plane3(), Wm4::Matrix3< Real >::QForm(), Wm4::IntrTriangle3Triangle3< Real >::Test(), Wm4::IntrSegment3Box3< Real >::Test(), Wm4::IntrLine3Box3< Real >::Test(), and Wm4::MeshSmoother< Real >::Update().
void Wm4::Vector3< Real >::GenerateComplementBasis | ( | Vector3< Real > & | rkU, | |
Vector3< Real > & | rkV, | |||
const Vector3< Real > & | rkW | |||
) | [inline, static] |
Definition at line 620 of file Wm4Vector3.inl.
Referenced by Wm4::Vector3< Real >::GenerateOrthonormalBasis().
void Wm4::Vector3< Real >::GenerateOrthonormalBasis | ( | Vector3< Real > & | rkU, | |
Vector3< Real > & | rkV, | |||
Vector3< Real > & | rkW | |||
) | [inline, static] |
Definition at line 612 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::GenerateComplementBasis(), and Wm4::Vector3< Real >::Normalize().
void Wm4::Vector3< Real >::GetBarycentrics | ( | const Vector3< Real > & | rkV0, | |
const Vector3< Real > & | rkV1, | |||
const Vector3< Real > & | rkV2, | |||
const Vector3< Real > & | rkV3, | |||
Real | afBary[4] | |||
) | const [inline] |
Definition at line 346 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Cross(), Wm4::Vector3< Real >::Dot(), and Wm4::Vector3< Real >::SquaredLength().
Referenced by Wm4::Delaunay3< Real >::GetBarycentricSet().
Real Wm4::Vector3< Real >::Length | ( | void | ) | const [inline] |
Real Wm4::Vector3< Real >::Normalize | ( | void | ) | [inline] |
Definition at line 303 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Length().
Referenced by Wm4::ParametricSurface< Real >::ComputePrincipalCurvatureInfo(), MeshCore::MeshGeomFacet::DistanceToLineSegment(), Wm4::Vector3< Real >::GenerateOrthonormalBasis(), Wm4::ParametricSurface< Real >::GetFrame(), MeshCore::MeshGeomFacet::IntersectBoundingBox(), MeshCore::MeshGeomEdge::IntersectBoundingBox(), MeshCore::MeshGeomFacet::IntersectWithPlane(), MeshCore::MeshGeomFacet::IsDeformed(), Wm4::Vector3< Real >::Orthonormalize(), Wm4::Matrix3< Real >::ToAxisAngle(), and Wm4::Vector3< Real >::UnitCross().
Wm4::Vector3< Real >::operator const Real * | ( | ) | const [inline] |
Definition at line 51 of file Wm4Vector3.inl.
Wm4::Vector3< Real >::operator Real * | ( | ) | [inline] |
Definition at line 57 of file Wm4Vector3.inl.
bool Wm4::Vector3< Real >::operator!= | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 132 of file Wm4Vector3.inl.
Vector3< Real > Wm4::Vector3< Real >::operator* | ( | Real | fScalar | ) | const [inline] |
Definition at line 180 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Vector3().
Vector3< Real > & Wm4::Vector3< Real >::operator*= | ( | Real | fScalar | ) | [inline] |
Definition at line 247 of file Wm4Vector3.inl.
Vector3< Real > Wm4::Vector3< Real >::operator+ | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 162 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Vector3().
Vector3< Real > & Wm4::Vector3< Real >::operator+= | ( | const Vector3< Real > & | rkV | ) | [inline] |
Definition at line 229 of file Wm4Vector3.inl.
Vector3< Real > Wm4::Vector3< Real >::operator- | ( | void | ) | const [inline] |
Definition at line 211 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Vector3().
Vector3< Real > Wm4::Vector3< Real >::operator- | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 171 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Vector3().
Vector3< Real > & Wm4::Vector3< Real >::operator-= | ( | const Vector3< Real > & | rkV | ) | [inline] |
Definition at line 238 of file Wm4Vector3.inl.
Vector3< Real > Wm4::Vector3< Real >::operator/ | ( | Real | fScalar | ) | const [inline] |
Definition at line 189 of file Wm4Vector3.inl.
Vector3< Real > & Wm4::Vector3< Real >::operator/= | ( | Real | fScalar | ) | [inline] |
Definition at line 256 of file Wm4Vector3.inl.
bool Wm4::Vector3< Real >::operator< | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 138 of file Wm4Vector3.inl.
bool Wm4::Vector3< Real >::operator<= | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 144 of file Wm4Vector3.inl.
Vector3< Real > & Wm4::Vector3< Real >::operator= | ( | const Vector3< Real > & | rkV | ) | [inline] |
Definition at line 111 of file Wm4Vector3.inl.
bool Wm4::Vector3< Real >::operator== | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 126 of file Wm4Vector3.inl.
bool Wm4::Vector3< Real >::operator> | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 150 of file Wm4Vector3.inl.
bool Wm4::Vector3< Real >::operator>= | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 156 of file Wm4Vector3.inl.
Real & Wm4::Vector3< Real >::operator[] | ( | int | i | ) | [inline] |
Definition at line 69 of file Wm4Vector3.inl.
Real Wm4::Vector3< Real >::operator[] | ( | int | i | ) | const [inline] |
Definition at line 63 of file Wm4Vector3.inl.
void Wm4::Vector3< Real >::Orthonormalize | ( | Vector3< Real > * | akV | ) | [inline, static] |
Definition at line 606 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Orthonormalize().
void Wm4::Vector3< Real >::Orthonormalize | ( | Vector3< Real > & | rkU, | |
Vector3< Real > & | rkV, | |||
Vector3< Real > & | rkW | |||
) | [inline, static] |
Definition at line 578 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Dot(), and Wm4::Vector3< Real >::Normalize().
Referenced by Wm4::Vector3< Real >::Orthonormalize().
Real Wm4::Vector3< Real >::SquaredLength | ( | ) | const [inline] |
Definition at line 285 of file Wm4Vector3.inl.
Referenced by Wm4::Triangle3< Real >::DistanceTo(), Wm4::Vector3< Real >::GetBarycentrics(), Wm4::DistVector3Triangle3< Real >::GetSquared(), Wm4::DistVector3Segment3< Real >::GetSquared(), Wm4::DistSegment3Segment3< Real >::GetSquared(), and Wm4::DistLine3Segment3< Real >::GetSquared().
Vector3< Real > Wm4::Vector3< Real >::UnitCross | ( | const Vector3< Real > & | rkV | ) | const [inline] |
Definition at line 335 of file Wm4Vector3.inl.
References Wm4::Vector3< Real >::Normalize().
Referenced by Wm4::ParametricSurface< Real >::ComputePrincipalCurvatureInfo(), Wm4::ImplicitSurface< Real >::ComputePrincipalCurvatureInfo(), Wm4::IntrTriangle3Triangle3< Real >::Find(), Wm4::ParametricSurface< Real >::GetFrame(), Wm4::DistLine3Triangle3< Real >::GetSquared(), Wm4::Plane3< Real >::Plane3(), and Wm4::IntrTriangle3Triangle3< Real >::Test().
Real & Wm4::Vector3< Real >::X | ( | ) | [inline] |
Definition at line 81 of file Wm4Vector3.inl.
Real Wm4::Vector3< Real >::X | ( | ) | const [inline] |
Definition at line 75 of file Wm4Vector3.inl.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), Wm4::ImplicitSurface< Real >::ComputePrincipalCurvatureInfo(), MeshCore::Approximation::Convert(), MeshCore::MeshGeomFacet::DistanceToPoint(), MeshCore::PlaneFit::Fit(), MeshCore::FunctionContainer::GetGradient(), Reen::ParameterCorrection::GetUVParameters(), and Wm4::operator<<().
Real & Wm4::Vector3< Real >::Y | ( | ) | [inline] |
Definition at line 93 of file Wm4Vector3.inl.
Real Wm4::Vector3< Real >::Y | ( | ) | const [inline] |
Definition at line 87 of file Wm4Vector3.inl.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), Wm4::ImplicitSurface< Real >::ComputePrincipalCurvatureInfo(), MeshCore::Approximation::Convert(), MeshCore::MeshGeomFacet::DistanceToPoint(), MeshCore::PlaneFit::Fit(), MeshCore::FunctionContainer::GetGradient(), and Reen::ParameterCorrection::GetUVParameters().
Real & Wm4::Vector3< Real >::Z | ( | ) | [inline] |
Definition at line 105 of file Wm4Vector3.inl.
Real Wm4::Vector3< Real >::Z | ( | ) | const [inline] |
Definition at line 99 of file Wm4Vector3.inl.
Referenced by MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), Wm4::ImplicitSurface< Real >::ComputePrincipalCurvatureInfo(), MeshCore::Approximation::Convert(), MeshCore::MeshGeomFacet::DistanceToPoint(), MeshCore::PlaneFit::Fit(), and MeshCore::FunctionContainer::GetGradient().
const Vector3 Wm4::Vector3< Real >::ONE [static] |
Definition at line 120 of file Wm4Vector3.h.
const Vector3 Wm4::Vector3< Real >::UNIT_X [static] |
Definition at line 117 of file Wm4Vector3.h.
const Vector3 Wm4::Vector3< Real >::UNIT_Y [static] |
Definition at line 118 of file Wm4Vector3.h.
const Vector3 Wm4::Vector3< Real >::UNIT_Z [static] |
Definition at line 119 of file Wm4Vector3.h.
const Vector3 Wm4::Vector3< Real >::ZERO [static] |
Definition at line 116 of file Wm4Vector3.h.