SIMLIB/C++  3.07
Public Member Functions | Private Attributes | Friends | List of all members
simlib3::Value3D Class Reference

3D vector value More...

#include <simlib3D.h>

Public Member Functions

 Value3D (double x, double y, double z)
 
double x () const
 
double y () const
 
double z () const
 
Value3D operator+ (Value3D b)
 
Value3D operator- (Value3D b)
 
void Print ()
 

Private Attributes

double _x
 
double _y
 
double _z
 

Friends

double abs (const Value3D &a)
 
Value3D operator+ (const Value3D &a, const Value3D &b)
 
Value3D operator- (const Value3D &a, const Value3D &b)
 
Value3D operator- (const Value3D &a)
 
Value3D operator* (const Value3D &a, const Value3D &b)
 
Value3D operator* (const Value3D &a, const double b)
 
Value3D operator* (const double a, const Value3D &b)
 
double scalar_product (const Value3D &a, const Value3D &b)
 
Value3D operator/ (const Value3D &a, const double b)
 

Detailed Description

3D vector value

Definition at line 31 of file simlib3D.h.

Constructor & Destructor Documentation

◆ Value3D()

simlib3::Value3D::Value3D ( double  x,
double  y,
double  z 
)
inline

Definition at line 34 of file simlib3D.h.

Referenced by operator+(), operator-(), and simlib3::Adaptor3D::Value().

Member Function Documentation

◆ operator+()

Value3D simlib3::Value3D::operator+ ( Value3D  b)
inline

Definition at line 41 of file simlib3D.h.

References _x, _y, _z, and Value3D().

Referenced by simlib3::Integrator3D::Init(), and Print().

◆ operator-()

Value3D simlib3::Value3D::operator- ( Value3D  b)
inline

Definition at line 42 of file simlib3D.h.

References _x, _y, _z, and Value3D().

Referenced by simlib3::Integrator3D::Init(), and Print().

◆ Print()

void simlib3::Value3D::Print ( )
inline

◆ x()

double simlib3::Value3D::x ( ) const
inline

◆ y()

double simlib3::Value3D::y ( ) const
inline

◆ z()

double simlib3::Value3D::z ( ) const
inline

Friends And Related Function Documentation

◆ abs

double abs ( const Value3D a)
friend

Definition at line 38 of file simlib3D.cc.

Referenced by Print().

◆ operator* [1/3]

Value3D operator* ( const Value3D a,
const Value3D b 
)
friend

Definition at line 58 of file simlib3D.cc.

Referenced by simlib3::Integrator3D::Init(), and Print().

◆ operator* [2/3]

Value3D operator* ( const Value3D a,
const double  b 
)
friend

Definition at line 66 of file simlib3D.cc.

◆ operator* [3/3]

Value3D operator* ( const double  a,
const Value3D b 
)
friend

Definition at line 71 of file simlib3D.cc.

◆ operator+

Value3D operator+ ( const Value3D a,
const Value3D b 
)
friend

Definition at line 43 of file simlib3D.cc.

◆ operator- [1/2]

Value3D operator- ( const Value3D a,
const Value3D b 
)
friend

Definition at line 48 of file simlib3D.cc.

◆ operator- [2/2]

Value3D operator- ( const Value3D a)
friend

Definition at line 53 of file simlib3D.cc.

◆ operator/

Value3D operator/ ( const Value3D a,
const double  b 
)
friend

Definition at line 81 of file simlib3D.cc.

Referenced by simlib3::Integrator3D::Init(), and Print().

◆ scalar_product

double scalar_product ( const Value3D a,
const Value3D b 
)
friend

Definition at line 76 of file simlib3D.cc.

Referenced by Print().

Member Data Documentation

◆ _x

double simlib3::Value3D::_x
private

◆ _y

double simlib3::Value3D::_y
private

◆ _z

double simlib3::Value3D::_z
private

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