MeshKit  1.0
VecUtil Class Reference

A class of vector utilities. More...

#include <meshkit/VecUtil.hpp>

List of all members.

Static Public Member Functions

static double dot (double *a, double *b)
 Dot product.
static double length_sq (double *a)
 Length squared of a vector.
static double dist2 (double *a, double *b)
 Distance between two vectors.
static void normalize (double *a)
 Normalize a vector.
static void cross (double *a, double *b, double *c)
 Cross product.

Static Public Attributes

static double PI = acos(-1.0)
 Constant PI.
static double TWO_PI = 2.0 * VecUtil::PI
 Constant 2*pi.

Detailed Description

A class of vector utilities.

Definition at line 15 of file VecUtil.hpp.


Member Function Documentation

void cross ( double *  a,
double *  b,
double *  c 
) [inline, static]

Cross product.

Parameters:
aVector 1
bVector 2
cCross product

Definition at line 76 of file VecUtil.hpp.

double dist2 ( double *  a,
double *  b 
) [inline, static]

Distance between two vectors.

Parameters:
aVector 1
bVector 2
Returns:
Distance

Definition at line 62 of file VecUtil.hpp.

double dot ( double *  a,
double *  b 
) [inline, static]

Dot product.

Parameters:
aFirst vector
bSecond vector
Returns:
Dot project

Definition at line 58 of file VecUtil.hpp.

double length_sq ( double *  a) [inline, static]

Length squared of a vector.

Parameters:
aVector
Returns:
Length squared

Definition at line 60 of file VecUtil.hpp.

void normalize ( double *  a) [inline, static]

Normalize a vector.

Parameters:
aVector

Definition at line 68 of file VecUtil.hpp.


Member Data Documentation

double PI = acos(-1.0) [static]

Constant PI.

Definition at line 52 of file VecUtil.hpp.

double TWO_PI = 2.0 * VecUtil::PI [static]

Constant 2*pi.

Definition at line 55 of file VecUtil.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines