BRL-CAD
Accelerated Vector Math
Collaboration diagram for Accelerated Vector Math:

Files

file  dvec.h
 

Data Structures

struct  dvec_internal< LEN >
 
struct  fvec_internal< LEN >
 
class  dvec< LEN >
 
class  dvec_unop
 
class  dvec_op
 

Macros

#define VEC_ALIGN
 

Typedefs

typedef fastf_t mat2d_t[4] VEC_ALIGN
 

Functions

template<int LEN>
std::ostream & operator<< (std::ostream &out, const dvec< LEN > &v)
 
bool vequals (const vec2d &a, const vec2d &b)
 
bool mat2d_inverse (mat2d_t inv, mat2d_t m)
 
void mat2d_pt2d_mul (pt2d_t r, mat2d_t m, pt2d_t p)
 
void pt2dsub (pt2d_t r, pt2d_t a, pt2d_t b)
 
fastf_t v2mag (pt2d_t p)
 
void move (pt2d_t a, const double *b)
 

Variables

const double VEQUALITY = 0.0000001
 

Detailed Description

Macro Definition Documentation

◆ VEC_ALIGN

#define VEC_ALIGN

Definition at line 131 of file dvec.h.

Typedef Documentation

◆ VEC_ALIGN

typedef fastf_t mat2d_t [4] VEC_ALIGN

Definition at line 753 of file dvec.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
const dvec< LEN > &  v 
)

◆ vequals()

bool vequals ( const vec2d &  a,
const vec2d &  b 
)
inline

Definition at line 746 of file dvec.h.

References VEQUALITY.

◆ mat2d_inverse()

bool mat2d_inverse ( mat2d_t  inv,
mat2d_t  m 
)
inline

Definition at line 766 of file dvec.h.

References dvec< LEN >::a_store(), c, NEAR_ZERO, scale, and VUNITIZE_TOL.

Here is the call graph for this function:

◆ mat2d_pt2d_mul()

void mat2d_pt2d_mul ( pt2d_t  r,
mat2d_t  m,
pt2d_t  p 
)
inline

Definition at line 783 of file dvec.h.

References c, x, and y.

◆ pt2dsub()

void pt2dsub ( pt2d_t  r,
pt2d_t  a,
pt2d_t  b 
)
inline

Definition at line 794 of file dvec.h.

References dvec< LEN >::a_store().

Here is the call graph for this function:

◆ v2mag()

fastf_t v2mag ( pt2d_t  p)
inline

Definition at line 802 of file dvec.h.

References dvec< LEN >::foldr().

Here is the call graph for this function:

◆ move()

void move ( pt2d_t  a,
const double *  b 
)
inline

Definition at line 809 of file dvec.h.

Variable Documentation

◆ VEQUALITY

const double VEQUALITY = 0.0000001

Definition at line 47 of file dvec.h.

Referenced by vequals().