Go to the SVN repository for this file.
1 #ifndef GUI_MATH___VECT3___HPP 2 #define GUI_MATH___VECT3___HPP 140 template<
classT>
inline 143m_Xyz[0] = m_Xyz[1] = m_Xyz[2] = (
T)0;
150 template<
classT>
inline 153m_Xyz[0] = m_Xyz[1] = m_Xyz[2] =
val;
157 template<
classT>
inline 248 template<
classT>
inline T 251 return(
T)(X() * v.
X() + Y() * v.
Y() +
Z() * v.
Z());
266-(X() * v.
Z() -
Z() * v.
X()),
267X() * v.
Y() - Y() * v.
X());
276scalar =
T(1) / scalar;
288 template<
classT>
inline void 300 template<
classT>
inline float 303return ::sqrt(Length2());
307 template<
classT>
inline float 310 return(X() * X() + Y() * Y() +
Z() *
Z());
314 template<
classT>
inline bool 317 return(Length2() == 0.0);
325 template<
classT>
inline void 329TFloat
len= TFloat(Length());
331 if(
len!= TFloat(0)) {
332TFloat
f= TFloat(1) /
len;
358 template<
classT>
inline bool 363TFloat
l= Length() * v.
Length();
377 template<
classT>
inline bool 382 if(
result== TFloat(0) &&
383Length() != TFloat(0) &&
384v.
Length() != TFloat(0)) {
Include a standard set of the NCBI C++ Toolkit most basic headers.
CVect3< T > & operator/=(T)
CVect3< T > Cross(const CVect3< T > &) const
bool Normal(const CVect3< T > &) const
CVect3< T > & operator*=(T)
CVect3< T > & operator-=(T)
const T & operator[](int i) const
T Dot(const CVect3< T > &) const
CVect3< T > & operator+=(T)
CVect3< T > Direction() const
const T * GetData() const
bool Parallel(const CVect3< T > &) const
NCBI_PROMOTE(T, U) operator*(const CVect2< T > &v1
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define Z
printf format modifier for size_t
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
float Dot(iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
Dot-product similarity.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4