SIMLIB/C++ 3.09
Loading...
Searching...
No Matches
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

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().

◆ operator-()

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

Definition at line 42 of file simlib3D.h.

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

◆ Print()

void simlib3::Value3D::Print ( )
inline

Definition at line 43 of file simlib3D.h.

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

Referenced by simlib3::aContiBlock3D::Print(), simlib3::Print(), and Print().

◆ x()

◆ y()

◆ z()

◆ abs

double abs ( const Value3D & a)
friend

Definition at line 38 of file simlib3D.cc.

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

Referenced by abs.

◆ operator* [1/3]

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

Definition at line 71 of file simlib3D.cc.

References Value3D().

◆ operator* [2/3]

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

Definition at line 66 of file simlib3D.cc.

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

◆ operator* [3/3]

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

Definition at line 58 of file simlib3D.cc.

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

◆ operator+

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

Definition at line 43 of file simlib3D.cc.

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

◆ operator- [1/2]

Value3D operator- ( const Value3D & a)
friend

Definition at line 53 of file simlib3D.cc.

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

◆ operator- [2/2]

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

Definition at line 48 of file simlib3D.cc.

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

◆ operator/

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

Definition at line 81 of file simlib3D.cc.

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

◆ scalar_product

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

Definition at line 76 of file simlib3D.cc.

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

Referenced by scalar_product.

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: