#include <math3d.hpp>
Public Member Functions | |
vect3d () | |
vect3d (prec_t a, prec_t b, prec_t c) | |
void | clear () |
void | add (const vect3d &a) |
void | normalize () |
vect3d | normal () const |
| |
prec_t | magnitude () const |
| |
prec_t | length () const |
| |
void | operator *= (prec_t f) |
void | operator+= (const vect3d &v) |
void | operator-= (const vect3d &v) |
void | operator/= (prec_t f) |
void | operator= (prec_t f) |
vect3d | operator- () const |
vect3d | recip () const |
void | across (vect3d &out) |
Find a vector that is at right angle to this. | |
void | print (const char *name=0) const |
Print vector value into stdout. | |
char * | sprint (char *buf) const |
Print vector into buffer. | |
Public Attributes | |
prec_t | x |
prec_t | y |
prec_t | z |
Friends | |
vect3d | operator * (prec_t f, const vect3d &v) |
vect3d | operator * (const vect3d &v, prec_t f) |
vect3d | operator/ (const vect3d &v, prec_t f) |
vect3d | operator+ (const vect3d &l, const vect3d &r) |
vect3d | operator- (const vect3d &l, const vect3d &r) |
vect3d | operator% (const vect3d &l, const vect3d &r) |
Cross product. | |
prec_t | operator * (const vect3d &l, const vect3d &r) |
Dot product. | |
bool | operator== (const vect3d &l, const vect3d &r) |
bool | operator!= (const vect3d &l, const vect3d &r) |
bool | operator< (const vect3d &l, const vect3d &r) |
Definition at line 438 of file math3d.hpp.
vect3d::vect3d | ( | ) | [inline] |
Definition at line 443 of file math3d.hpp.
void vect3d::clear | ( | ) | [inline] |
void vect3d::add | ( | const vect3d & | a | ) | [inline] |
void vect3d::normalize | ( | ) | [inline] |
vect3d vect3d::normal | ( | ) | const [inline] |
Definition at line 449 of file math3d.hpp.
References normalize().
Referenced by CoilFactory::make_coilpair(), and PLink::PLink().
prec_t vect3d::magnitude | ( | ) | const [inline] |
prec_t vect3d::length | ( | ) | const [inline] |
Definition at line 453 of file math3d.hpp.
References magnitude(), and prec_t_sqrt.
Referenced by normalize().
void vect3d::operator *= | ( | prec_t | f | ) | [inline] |
void vect3d::operator+= | ( | const vect3d & | v | ) | [inline] |
void vect3d::operator-= | ( | const vect3d & | v | ) | [inline] |
void vect3d::operator/= | ( | prec_t | f | ) | [inline] |
void vect3d::operator= | ( | prec_t | f | ) | [inline] |
vect3d vect3d::operator- | ( | ) | const [inline] |
Definition at line 501 of file math3d.hpp.
vect3d vect3d::recip | ( | ) | const [inline] |
void vect3d::across | ( | vect3d & | out | ) |
Find a vector that is at right angle to this.
void vect3d::print | ( | const char * | name = 0 |
) | const |
Print vector value into stdout.
char* vect3d::sprint | ( | char * | buf | ) | const |
Print vector into buffer.
Definition at line 462 of file math3d.hpp.
Definition at line 465 of file math3d.hpp.
Definition at line 468 of file math3d.hpp.
Definition at line 471 of file math3d.hpp.
Definition at line 474 of file math3d.hpp.
Definition at line 485 of file math3d.hpp.
Definition at line 488 of file math3d.hpp.
Definition at line 491 of file math3d.hpp.
Definition at line 440 of file math3d.hpp.
Referenced by add(), differator< N >::getDifference(), FPReader::read(), transf3d::reflect(), transf3d::transf3d(), transf3d::transform(), and FPWriter::write().
Definition at line 440 of file math3d.hpp.
Referenced by add(), clear(), differator< N >::getDifference(), operator *=(), operator/=(), operator=(), FPReader::read(), recip(), transf3d::reflect(), transf3d::transf3d(), transf3d::transform(), and FPWriter::write().
Definition at line 440 of file math3d.hpp.
Referenced by add(), clear(), differator< N >::getDifference(), operator *=(), operator/=(), operator=(), FPReader::read(), recip(), transf3d::reflect(), transf3d::transf3d(), transf3d::transform(), and FPWriter::write().