Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Public Attributes | List of all members
NxVec3 Class Reference

#include <NxVec3.h>

Public Member Functions

 NxVec3 ()
 
 NxVec3 (NxReal a)
 
 NxVec3 (NxReal nx, NxReal ny, NxReal nz)
 
 NxVec3 (const NxReal v[])
 
 NxVec3 (const NxReal v[], bool normalized)
 
 NxVec3 (const NxVec3 &v)
 
 NxVec3 (const NxVec3 &v, bool normalized)
 
const NxVec3operator= (const NxVec3 &)
 
const NxRealget () const
 
NxRealget ()
 
bool operator< (const NxVec3 &) const
 
bool operator== (const NxVec3 &) const
 
bool operator!= (const NxVec3 &) const
 
void set (const NxVec3 &)
 
void setx (const NxReal &d)
 
void sety (const NxReal &d)
 
void setz (const NxReal &d)
 
void setNegative (const NxVec3 &a)
 
void setNegative ()
 
void set (NxReal, NxReal, NxReal)
 
void set (NxReal)
 
void zero ()
 
void setPlusInfinity ()
 
void setMinusInfinity ()
 
void add (const NxVec3 &a, const NxVec3 &b)
 
void subtract (const NxVec3 &a, const NxVec3 &b)
 
void multiply (NxReal s, const NxVec3 &a)
 
void arrayMultiply (const NxVec3 &a, const NxVec3 &b)
 
void multiplyAdd (NxReal s, const NxVec3 &a, const NxVec3 &b)
 
NxReal normalize ()
 
void setMagnitude (NxReal)
 
bool isFinite () const
 
NxReal dot (const NxVec3 &other) const
 
bool sameDirection (const NxVec3 &) const
 
NxReal magnitude () const
 
NxReal distance (const NxVec3 &) const
 
void cross (const NxVec3 &left, const NxVec3 &right)
 
void cross (const NxVec3 &left, const NxVec3 &right, bool normalized)
 
bool equals (const NxVec3 &, NxReal epsilon) const
 
void rotate (NxReal angle, const NxVec3 &axe)
 
void rotate (NxReal sin_angle, NxReal cos_angle, const NxVec3 &axe)
 
void rotate (const NxVec3 &axe)
 
NxVec3 operator- () const
 
NxVec3 operator+ (const NxVec3 &v) const
 
NxVec3 operator- (const NxVec3 &v) const
 
NxVec3 operator* (NxReal f) const
 
NxVec3 operator/ (NxReal f) const
 
NxVec3operator+= (const NxVec3 &v)
 
NxVec3operator-= (const NxVec3 &v)
 
NxVec3operator*= (NxReal f)
 
NxVec3operator/= (NxReal f)
 
NxVec3 cross (const NxVec3 &v) const
 
NxVec3 operator^ (const NxVec3 &v) const
 
NxReal operator| (const NxVec3 &v) const
 

Public Attributes

NxReal x
 
NxReal y
 
NxReal z
 

Detailed Description

Definition at line 22 of file NxVec3.h.

Constructor & Destructor Documentation

◆ NxVec3() [1/7]

NxVec3::NxVec3 ( )

Definition at line 39 of file NxVec3.cpp.

Here is the caller graph for this function:

◆ NxVec3() [2/7]

NxVec3::NxVec3 ( NxReal  a)

Definition at line 17 of file NxVec3.cpp.

◆ NxVec3() [3/7]

NxVec3::NxVec3 ( NxReal  nx,
NxReal  ny,
NxReal  nz 
)

Definition at line 19 of file NxVec3.cpp.

◆ NxVec3() [4/7]

NxVec3::NxVec3 ( const NxReal  v[])

Definition at line 21 of file NxVec3.cpp.

◆ NxVec3() [5/7]

NxVec3::NxVec3 ( const NxReal  v[],
bool  normalized 
)

Definition at line 22 of file NxVec3.cpp.

Here is the call graph for this function:

◆ NxVec3() [6/7]

NxVec3::NxVec3 ( const NxVec3 v)

Definition at line 30 of file NxVec3.cpp.

◆ NxVec3() [7/7]

NxVec3::NxVec3 ( const NxVec3 v,
bool  normalized 
)

Definition at line 31 of file NxVec3.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ add()

void NxVec3::add ( const NxVec3 a,
const NxVec3 b 
)

Definition at line 124 of file NxVec3.cpp.

◆ arrayMultiply()

void NxVec3::arrayMultiply ( const NxVec3 a,
const NxVec3 b 
)

Definition at line 138 of file NxVec3.cpp.

◆ cross() [1/3]

void NxVec3::cross ( const NxVec3 left,
const NxVec3 right 
)

Definition at line 207 of file NxVec3.cpp.

Here is the caller graph for this function:

◆ cross() [2/3]

void NxVec3::cross ( const NxVec3 left,
const NxVec3 right,
bool  normalized 
)

Definition at line 218 of file NxVec3.cpp.

Here is the call graph for this function:

◆ cross() [3/3]

NxVec3 NxVec3::cross ( const NxVec3 v) const

Definition at line 294 of file NxVec3.cpp.

Here is the call graph for this function:

◆ distance()

NxReal NxVec3::distance ( const NxVec3 v) const

Definition at line 199 of file NxVec3.cpp.

Here is the caller graph for this function:

◆ dot()

NxReal NxVec3::dot ( const NxVec3 other) const

Definition at line 184 of file NxVec3.cpp.

◆ equals()

bool NxVec3::equals ( const NxVec3 ,
NxReal  epsilon 
) const

◆ get() [1/2]

NxReal * NxVec3::get ( )

Definition at line 54 of file NxVec3.cpp.

◆ get() [2/2]

const NxReal * NxVec3::get ( ) const

Definition at line 49 of file NxVec3.cpp.

Here is the caller graph for this function:

◆ isFinite()

bool NxVec3::isFinite ( ) const

◆ magnitude()

NxReal NxVec3::magnitude ( ) const

Definition at line 194 of file NxVec3.cpp.

Here is the caller graph for this function:

◆ multiply()

void NxVec3::multiply ( NxReal  s,
const NxVec3 a 
)

Definition at line 145 of file NxVec3.cpp.

◆ multiplyAdd()

void NxVec3::multiplyAdd ( NxReal  s,
const NxVec3 a,
const NxVec3 b 
)

Definition at line 152 of file NxVec3.cpp.

◆ normalize()

NxReal NxVec3::normalize ( )

Definition at line 159 of file NxVec3.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool NxVec3::operator!= ( const NxVec3 v) const

Definition at line 79 of file NxVec3.cpp.

◆ operator*()

NxVec3 NxVec3::operator* ( NxReal  f) const

Definition at line 250 of file NxVec3.cpp.

Here is the call graph for this function:

◆ operator*=()

NxVec3 & NxVec3::operator*= ( NxReal  f)

Definition at line 277 of file NxVec3.cpp.

◆ operator+()

NxVec3 NxVec3::operator+ ( const NxVec3 v) const

Definition at line 240 of file NxVec3.cpp.

Here is the call graph for this function:

◆ operator+=()

NxVec3 & NxVec3::operator+= ( const NxVec3 v)

Definition at line 261 of file NxVec3.cpp.

◆ operator-() [1/2]

NxVec3 NxVec3::operator- ( ) const

Definition at line 235 of file NxVec3.cpp.

Here is the call graph for this function:

◆ operator-() [2/2]

NxVec3 NxVec3::operator- ( const NxVec3 v) const

Definition at line 245 of file NxVec3.cpp.

Here is the call graph for this function:

◆ operator-=()

NxVec3 & NxVec3::operator-= ( const NxVec3 v)

Definition at line 269 of file NxVec3.cpp.

◆ operator/()

NxVec3 NxVec3::operator/ ( NxReal  f) const

Definition at line 255 of file NxVec3.cpp.

Here is the call graph for this function:

◆ operator/=()

NxVec3 & NxVec3::operator/= ( NxReal  f)

Definition at line 285 of file NxVec3.cpp.

◆ operator<()

bool NxVec3::operator< ( const NxVec3 ) const

◆ operator=()

const NxVec3 & NxVec3::operator= ( const NxVec3 v)

Definition at line 41 of file NxVec3.cpp.

◆ operator==()

bool NxVec3::operator== ( const NxVec3 v) const

Definition at line 74 of file NxVec3.cpp.

◆ operator^()

NxVec3 NxVec3::operator^ ( const NxVec3 v) const

Definition at line 301 of file NxVec3.cpp.

Here is the call graph for this function:

◆ operator|()

NxReal NxVec3::operator| ( const NxVec3 v) const

Definition at line 308 of file NxVec3.cpp.

◆ rotate() [1/3]

void NxVec3::rotate ( const NxVec3 axe)

Definition at line 372 of file NxVec3.cpp.

◆ rotate() [2/3]

void NxVec3::rotate ( NxReal  angle,
const NxVec3 axe 
)

Definition at line 318 of file NxVec3.cpp.

Here is the caller graph for this function:

◆ rotate() [3/3]

void NxVec3::rotate ( NxReal  sin_angle,
NxReal  cos_angle,
const NxVec3 axe 
)

Definition at line 345 of file NxVec3.cpp.

◆ sameDirection()

bool NxVec3::sameDirection ( const NxVec3 v) const

Definition at line 189 of file NxVec3.cpp.

◆ set() [1/3]

void NxVec3::set ( const NxVec3 v)

Definition at line 84 of file NxVec3.cpp.

◆ set() [2/3]

void NxVec3::set ( NxReal  v)

Definition at line 112 of file NxVec3.cpp.

◆ set() [3/3]

void NxVec3::set ( NxReal  x,
NxReal  y,
NxReal  z 
)

Definition at line 105 of file NxVec3.cpp.

◆ setMagnitude()

void NxVec3::setMagnitude ( NxReal  length)

Definition at line 172 of file NxVec3.cpp.

Here is the call graph for this function:

◆ setMinusInfinity()

void NxVec3::setMinusInfinity ( )

◆ setNegative() [1/2]

void NxVec3::setNegative ( )

Definition at line 98 of file NxVec3.cpp.

◆ setNegative() [2/2]

void NxVec3::setNegative ( const NxVec3 a)

Definition at line 91 of file NxVec3.cpp.

◆ setPlusInfinity()

void NxVec3::setPlusInfinity ( )

◆ setx()

void NxVec3::setx ( const NxReal d)

Definition at line 59 of file NxVec3.cpp.

◆ sety()

void NxVec3::sety ( const NxReal d)

Definition at line 64 of file NxVec3.cpp.

◆ setz()

void NxVec3::setz ( const NxReal d)

Definition at line 69 of file NxVec3.cpp.

◆ subtract()

void NxVec3::subtract ( const NxVec3 a,
const NxVec3 b 
)

Definition at line 131 of file NxVec3.cpp.

◆ zero()

void NxVec3::zero ( )

Definition at line 119 of file NxVec3.cpp.

Member Data Documentation

◆ x

NxReal NxVec3::x

Definition at line 80 of file NxVec3.h.

◆ y

NxReal NxVec3::y

Definition at line 80 of file NxVec3.h.

◆ z

NxReal NxVec3::z

Definition at line 80 of file NxVec3.h.


The documentation for this class was generated from the following files: