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_2vect3_8hpp_source.html below:

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

Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI_MATH___VECT3___HPP 2 #define GUI_MATH___VECT3___HPP 140 template

<

class

T>

inline 143

m_Xyz[0] = m_Xyz[1] = m_Xyz[2] = (

T

)0;

150 template

<

class

T>

inline 153

m_Xyz[0] = m_Xyz[1] = m_Xyz[2] =

val

;

157 template

<

class

T>

inline 248 template

<

class

T>

inline T 251  return

(

T

)(X() * v.

X

() + Y() * v.

Y

() +

Z

() * v.

Z

());

266

-(X() * v.

Z

() -

Z

() * v.

X

()),

267

X() * v.

Y

() - Y() * v.

X

());

276

scalar =

T

(1) / scalar;

288 template

<

class

T>

inline void 300 template

<

class

T>

inline float 303

return ::sqrt(Length2());

307 template

<

class

T>

inline float 310  return

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

Z

() *

Z

());

314 template

<

class

T>

inline bool 317  return

(Length2() == 0.0);

325 template

<

class

T>

inline void 329

TFloat

len

= TFloat(Length());

331  if

(

len

!= TFloat(0)) {

332

TFloat

f

= TFloat(1) /

len

;

358 template

<

class

T>

inline bool 363

TFloat

l

= Length() * v.

Length

();

377 template

<

class

T>

inline bool 382  if

(

result

== TFloat(0) &&

383

Length() != TFloat(0) &&

384

v.

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