nec2++  1.7.0
Public Member Functions | List of all members
nec_3vector Class Reference

A Class for handling 3 dimensional vectors. More...

#include <math_util.h>

Public Member Functions

 nec_3vector (const nec_float &in_x, const nec_float &in_y, const nec_float &in_z)
 
nec_float norm () const
 The Euclidian norm. More...
 
nec_float norm2 () const
 
nec_float normL1 () const
 The L1-distance (often called the Manhattan norm) More...
 
nec_3vectoroperator= (const nec_3vector &copy)
 
int operator== (const nec_3vector &copy) const
 
nec_3vectoroperator+= (const nec_3vector &a)
 
nec_3vector operator+ (nec_float a) const
 
nec_3vector operator+ (const nec_3vector &a) const
 
nec_3vectoroperator-= (const nec_3vector &a)
 
nec_3vector operator- (const nec_3vector &a) const
 
nec_3vectoroperator/= (const nec_float &a)
 
nec_3vector operator/ (nec_float a) const
 
nec_float dot (const nec_3vector &a) const
 
nec_3vectoroperator*= (const nec_float &a)
 
nec_3vector operator* (nec_float a) const
 
nec_float & operator() (int i)
 
const nec_float & operator() (int i) const
 
nec_3vector operator* (const nec_3vector &a) const
 Cross-product.
 
nec_float x () const
 
nec_float y () const
 
nec_float z () const
 

Detailed Description

A Class for handling 3 dimensional vectors.

Member Function Documentation

nec_float nec_3vector::norm ( ) const
inline

The Euclidian norm.

!

Referenced by c_geometry::wire().

nec_float nec_3vector::normL1 ( ) const
inline

The L1-distance (often called the Manhattan norm)

!


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