16 #ifndef VHACD_VECTOR_H 17 #define VHACD_VECTOR_H 27 const T&
operator[](
size_t i)
const {
return m_data[i]; }
61 X() = (bmin.
X() + bmax.
X())*0.5;
62 Y() = (bmin.
Y() + bmax.
Y())*0.5;
63 Z() = (bmin.
Z() + bmax.
Z())*0.5;
64 T dx = bmax.
X() - bmin.
X();
65 T dy = bmax.
Y() - bmin.
Y();
66 T dz = bmax.
Z() - bmin.
Z();
67 T diagonal = T(sqrt(dx*dx + dy*dy + dz*dz));
110 return dx*dx + dy*dy + dz*dz;
127 template <
typename T>
162 template <
typename T>
164 template <
typename T>
167 #include "vhacdVector.inl" void operator+=(const Vec3 &rhs)
Vector dim 2.
Definition: vhacdVector.h:128
T & operator[](size_t i)
Definition: vhacdVector.h:26
SIMD_FORCE_INLINE const btScalar & x() const
Return the x value.
Definition: btVector3.h:275
const bool Colinear(const Vec3< T > &a, const Vec3< T > &b, const Vec3< T > &c)
void operator=(const Vec3 &rhs)
T operator*(const Vec3 &rhs) const
T GetDistance(const Vec3 &p) const
Definition: vhacdVector.h:113
Vec3 operator^(const Vec3 &rhs) const
T & operator[](size_t i)
Definition: vhacdVector.h:130
Vec3 operator+(const Vec3 &rhs) const
Vec3 operator/(T rhs) const
T * GetData(void)
Definition: vhacdVector.h:119
const T & operator[](size_t i) const
Definition: vhacdVector.h:27
SIMD_FORCE_INLINE const btScalar & y() const
Return the y value.
Definition: btVector3.h:277
void UpdateMinMax(Vec3 &bmin, Vec3 &bmax) const
Definition: vhacdVector.h:72
bool operator>(const Vec3 &rhs) const
Definition: vhacdCircularList.h:19
bool operator<(const Vec3 &rhs) const
T GetDistanceSquared(const Vec3 &p) const
Definition: vhacdVector.h:105
const T & operator[](size_t i) const
Definition: vhacdVector.h:131
void operator-=(const Vec3 &rhs)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition: btVector3.h:279
Vector dim 3.
Definition: vhacdVector.h:24
T GetCenter(const Vec3 &bmin, const Vec3 &bmax)
Definition: vhacdVector.h:59
const T ComputeVolume4(const Vec3< T > &a, const Vec3< T > &b, const Vec3< T > &c, const Vec3< T > &d)