Go to the SVN repository for this file.
1 #ifndef GUI_MATH___VECT2___HPP 2 #define GUI_MATH___VECT2___HPP 108 const T&
X()
const{
return m_Xy[0]; }
110 const T&
Y()
const{
return m_Xy[1]; }
132 template<
classT>
inline 135m_Xy[0] = m_Xy[1] = (
T)0;
142 template<
classT>
inline 145m_Xy[0] = m_Xy[1] =
val;
149 template<
classT>
inline 236 template<
classT>
inline T 239 return(
T)(X() * v.
X() + Y() * v.
Y());
248scalar =
T(1) / scalar;
259 template<
classT>
inline void 270 template<
classT>
inline float 273return ::sqrt(Length2());
277 template<
classT>
inline float 280 return(X() * X() + Y() * Y());
284 template<
classT>
inline bool 287 return(Length2() == 0.0);
295 template<
classT>
inline void 299TFloat
len= TFloat(Length());
301 if(
len!= TFloat(0)) {
302TFloat
f= TFloat(1) /
len;
325 template<
classT>
inline bool 330TFloat
l= Length() * v.
Length();
344 template<
classT>
inline bool 349 if(
result== TFloat(0) &&
350Length() != TFloat(0) &&
351v.
Length() != TFloat(0)) {
Include a standard set of the NCBI C++ Toolkit most basic headers.
T operator[](int i) const
CVect2< T > & operator+=(T)
bool Normal(const CVect2< T > &) const
T Dot(const CVect2< T > &) const
CVect2< T > & operator-=(T)
bool Parallel(const CVect2< T > &) const
CVect2< T > Direction() const
const T * GetData() const
CVect2< T > & operator/=(T)
CVect2< T > & operator*=(T)
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.
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