A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/utils_2vect2_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/utils/vect2.hpp Source File

Go to the documentation of this file.

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

<

class

T>

inline 135

m_Xy[0] = m_Xy[1] = (

T

)0;

142 template

<

class

T>

inline 145

m_Xy[0] = m_Xy[1] =

val

;

149 template

<

class

T>

inline 236 template

<

class

T>

inline T 239  return

(

T

)(X() * v.

X

() + Y() * v.

Y

());

248

scalar =

T

(1) / scalar;

259 template

<

class

T>

inline void 270 template

<

class

T>

inline float 273

return ::sqrt(Length2());

277 template

<

class

T>

inline float 280  return

(X() * X() + Y() * Y());

284 template

<

class

T>

inline bool 287  return

(Length2() == 0.0);

295 template

<

class

T>

inline void 299

TFloat

len

= TFloat(Length());

301  if

(

len

!= TFloat(0)) {

302

TFloat

f

= TFloat(1) /

len

;

325 template

<

class

T>

inline bool 330

TFloat

l

= Length() * v.

Length

();

344 template

<

class

T>

inline bool 349  if

(

result

== TFloat(0) &&

350

Length() != TFloat(0) &&

351

v.

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