Home

SPApar_dir Class Reference
[Geometric Atoms]

This class defines a parametric direction vector on a surface in 2D parameter-space. More...

#include <param.hxx>

Inheritance diagram for SPApar_dir:

Inheritance graph
[legend]
Collaboration diagram for SPApar_dir:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void debug (FILE *fp=debug_file_ptr) const
 Outputs details of a parameter vector to the debug file or to the specified file.
logical is_zero (const double tol=SPAresabs) const
 Returns TRUE if a radius function is zero everywhere, to within a given tolerance; otherwise, it returns FALSE.
double len () const
 Returns the length of the SPApar_vec.
double len_sq () const
 Returns (du * du + dv * dv).
SPApar_vec const & operator*= (double d)
 Multiplies a parameter by a scalar.
SPApar_vec const & operator+= (SPApar_vec const &v)
 Adds two parameter vectors.
SPApar_vec const & operator-= (SPApar_vec const &v)
 Performs a binary minus operation.
SPApar_vec const & operator/= (double d)
 Divides a parameter vector by a scalar value.
 SPApar_dir (SPApar_vec const &v)
 Constructs and normalizes a SPApar_dir from a SPApar_vec.
 SPApar_dir (double uv[2])
 Constructs and normalizes a SPApar_dir from an array of two doubles.
 SPApar_dir (double uval, double vval)
 Constructs and normalizes a SPApar_dir from two doubles.
 SPApar_dir ()
 Constructs an un-initialized SPApar_dir.

Public Attributes

SPAparameter du
 The vector in the u-direction.
SPAparameter dv
 The vector in the v-direction.

Friends

double operator% (SPApar_dir const &u, SPApar_pos const &p)
 Returns the scalar product between a parameter direction and parameter position.
double operator% (SPApar_pos const &p, SPApar_dir const &u)
 Returns the scalar product between a parameter position and parameter direction.
SPApar_dir operator- (SPApar_dir const &)
 Performs a unary minus operation.


Detailed Description

This class defines a parametric direction vector on a surface in 2D parameter-space.

Constructor & Destructor Documentation

SPApar_dir::SPApar_dir (  )  [inline]

Constructs an un-initialized SPApar_dir.

SPApar_dir::SPApar_dir ( double  uval,
double  vval 
)

Constructs and normalizes a SPApar_dir from two doubles.



Parameters:
uval u vector.
vval v vector.

SPApar_dir::SPApar_dir ( double  uv[2]  ) 

Constructs and normalizes a SPApar_dir from an array of two doubles.



Parameters:
uv array of 2 vectors.

SPApar_dir::SPApar_dir ( SPApar_vec const &  v  ) 

Constructs and normalizes a SPApar_dir from a SPApar_vec.



Parameters:
v parameter vector direction.


Member Function Documentation

void SPApar_vec::debug ( FILE *  fp = debug_file_ptr  )  const [inherited]

Outputs details of a parameter vector to the debug file or to the specified file.



Parameters:
fp file name.

logical SPApar_vec::is_zero ( const double  tol = SPAresabs  )  const [inherited]

Returns TRUE if a radius function is zero everywhere, to within a given tolerance; otherwise, it returns FALSE.



Parameters:
tol zero tolerance.

double SPApar_vec::len (  )  const [inherited]

Returns the length of the SPApar_vec.

double SPApar_vec::len_sq (  )  const [inherited]

Returns (du * du + dv * dv).

SPApar_vec const& SPApar_vec::operator*= ( double  d  )  [inherited]

Multiplies a parameter by a scalar.



Parameters:
d double.

SPApar_vec const& SPApar_vec::operator+= ( SPApar_vec const &  v  )  [inherited]

Adds two parameter vectors.



Parameters:
v parameter vector.

SPApar_vec const& SPApar_vec::operator-= ( SPApar_vec const &  v  )  [inherited]

Performs a binary minus operation.



Parameters:
v parameter vector.

SPApar_vec const& SPApar_vec::operator/= ( double  d  )  [inherited]

Divides a parameter vector by a scalar value.



Parameters:
d scalar value.


Friends And Related Function Documentation

double operator% ( SPApar_dir const &  u,
SPApar_pos const &  p 
) [friend]

Returns the scalar product between a parameter direction and parameter position.



Parameters:
u parameter direction.
p parameter position.

double operator% ( SPApar_pos const &  p,
SPApar_dir const &  u 
) [friend]

Returns the scalar product between a parameter position and parameter direction.



Parameters:
p parameter position.
u parameter direction.

SPApar_dir operator- ( SPApar_dir const &   )  [friend]

Performs a unary minus operation.



Parameters:
u parameter direction.


Member Data Documentation

The vector in the u-direction.

The vector in the v-direction.