code::CTriplet Struct Reference

Inheritance diagram for code::CTriplet:

code::CPoint code::CVector List of all members.

Detailed Description

Store a cartesian coordinate triplet.

Author:
Thomas E. Vaughan
Version:
Id
code_PointVector.h,v 1.19 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 CTriplet (double a=0, double b=0, double c=0)
 Initialize from argument list; the default is a triplet of zeros.
 CTriplet (const double v[])
 Initialize from C-style vector.
void assign (double ix, double iy, double iz)
 operator const double * () const
 Convert CTriplet to C-style vector of doubles.

Public Attributes

double x
 X-coordinate.
double y
 Y-coordinate.
double z
 Z-coordinate.


Constructor & Destructor Documentation

code::CTriplet::CTriplet ( double  a = 0,
double  b = 0,
double  c = 0 
) [inline]

Initialize from argument list; the default is a triplet of zeros.

code::CTriplet::CTriplet ( const double  v[]  )  [inline]

Initialize from C-style vector.


Member Function Documentation

void code::CTriplet::assign ( double  ix,
double  iy,
double  iz 
) [inline]

code::CTriplet::operator const double * (  )  const [inline]

Convert CTriplet to C-style vector of doubles.


Member Data Documentation

double code::CTriplet::x

X-coordinate.

double code::CTriplet::y

Y-coordinate.

double code::CTriplet::z

Z-coordinate.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7