xc
|
Vector en tres dimensiones. More...
#include <Vector3d.h>
Public Member Functions | |
Vector3d (const CGVector_3 &v) | |
Vector3d (const GEOM_FT &x, const GEOM_FT &y, const GEOM_FT &z) | |
Vector3d (const FT_matrix &m) | |
Vector3d (const boost::python::list &) | |
Constructor. | |
Vector3d (const Pos3d &p1, const Pos3d &p2) | |
virtual bool | operator== (const Vector3d &) const |
Comparison operator. | |
bool | operator!= (const Vector3d &) const |
Comparison operator. | |
const CGVector_3 & | ToCGAL (void) const |
int | dimension (void) const |
void | Neg (void) |
bool | Nulo (void) const |
void | SetX (const GEOM_FT &vx) |
void | SetY (const GEOM_FT &vy) |
void | SetZ (const GEOM_FT &vz) |
void | Set (unsigned short int i, const GEOM_FT &v) |
GEOM_FT | at (const size_t &i) const |
GEOM_FT | operator() (const size_t &i) const |
GEOM_FT | operator[] (const size_t &i) const |
GEOM_FT | x (void) const |
GEOM_FT | y (void) const |
GEOM_FT | z (void) const |
FT_matrix | getMatrix (void) const |
Return a column vector. | |
boost::python::list | getPyList (void) const |
Return the point coordinates in a Python list. | |
Dir3d | getDirection (void) const |
Vector3d & | operator+= (const Vector3d &) |
Vector3d & | operator-= (const Vector3d &) |
Vector3d | operator+ (const Vector3d &) const |
Return la suma de los vectores. | |
Vector3d | operator- (const Vector3d &) const |
Return la resta de los vectores. | |
Vector3d | operator* (const GEOM_FT &) const |
Return el producto del vector por el escalar. | |
Vector3d | operator/ (const GEOM_FT &) const |
Return el producto del vector por el inverso del escalar. | |
virtual GEOM_FT | GetModulus2 (void) const |
Return the squared modulus. | |
virtual GEOM_FT | GetModulus (void) const |
Return el módulo del vector. | |
bool | EsUnitario (const double &tol=mchne_eps_dbl) const |
Vector3d | getNormalized (void) const |
Return the normalized vector. | |
void | Normalize (void) |
Normalize vector. | |
Vector3d | Perpendicular (const Vector3d &v) const |
Return the vector obtained from projecting v onto the perpendicular direction to this vector. More... | |
virtual GEOM_FT | GetDot (const Vector3d &v) const |
Return el producto escalar. | |
virtual GEOM_FT | GetDot (const FT_matrix &m) const |
Return the product of the vector times the matrix. | |
Vector3d | getCross (const Vector3d &v) const |
Return the cross product. | |
GEOM_FT | getSignedAngle (const Vector3d &v) const |
Return the angle between this vector and the argument. | |
GEOM_FT | getAngle (const Vector3d &v) const |
Return the angle between this vector and the argument. | |
GEOM_FT | getPolarAngle (void) const |
Get the polar angle (spherical coordinates) | |
GEOM_FT | getAzimuthalAngle (void) const |
Get the azimuthal angle (spherical coordinates) | |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary with the object members values. | |
void | setPyDict (const boost::python::dict &) |
Set the values of the object members from a Python dictionary. | |
![]() | |
ProtoGeom (void) | |
False when solution is not possible: intersection of parallel planes. More... | |
virtual void | Print (std::ostream &os) const |
void | setExists (bool e) |
bool | exists (void) const |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary with the object members values. | |
void | setPyDict (const boost::python::dict &) |
Set the values of the object members from a Python dictionary. | |
![]() | |
CommandEntity (CommandEntity *owr=nullptr) | |
Default constructor. | |
CommandEntity * | Owner (void) |
Return a pointer to the object owner. | |
const CommandEntity * | Owner (void) const |
Return un puntero al objeto propietario de ESTE. | |
const StandardOutputWrapper & | getStandardOutputWrapper (void) const |
Return the regular output stream wrapper. | |
StandardOutputWrapper & | getStandardOutputWrapper (void) |
Return the regular output stream wrapper. | |
const std::string & | getLogFileName (void) const |
Returns log file name. | |
void | setLogFileName (const std::string &) |
Sets log file name. | |
const std::string & | getErrFileName (void) const |
Returns err file name. | |
void | setErrFileName (const std::string &) |
Sets error file name. | |
const std::string & | getOutputFileName (void) const |
Returns regular output file name. | |
void | setOutputFileName (const std::string &) |
Sets regular output file name. | |
boost::python::object | evalPy (boost::python::object dict, const std::string &) |
Return the Python object that results from evaluating the argument. | |
boost::python::object | execPy (boost::python::object dict, const std::string &) |
Return the Python objects that results from executing the code in the string argument. | |
boost::python::object | execFilePy (boost::python::object dict, const std::string &) |
Return the Python object that results from executing the code in the file. | |
![]() | |
EntityWithProperties (EntityWithProperties *owr=nullptr) | |
Default constructor. | |
void | clearPyProps (void) |
Clear python properties map. | |
bool | hasPyProp (const std::string &) |
Returns true if property exists. | |
boost::python::object | getPyProp (const std::string &str) |
Return the Python object with the name being passed as parameter. | |
void | setPyProp (std::string str, boost::python::object val) |
Sets/appends a value tho the Python object's dictionary. | |
void | copyPropsFrom (const EntityWithProperties &) |
Copy the properties from the argument. | |
boost::python::list | getPropNames (void) const |
Return the names of the object properties weightings. | |
const PythonDict & | getPropertiesDict (void) const |
Return a std::map container with the properties of the object. | |
boost::python::dict | getPyDict (void) const |
Return a Python dictionary containing the object members values. | |
void | setPyDict (const boost::python::dict &) |
Set the values of the object members from a Python dictionary. | |
![]() | |
EntityWithOwner (EntityWithOwner *owr=nullptr) | |
Default constructor. | |
EntityWithOwner (const EntityWithOwner &) | |
Copy constructor. | |
EntityWithOwner & | operator= (const EntityWithOwner &) |
Assignment operator. | |
virtual bool | operator== (const EntityWithOwner &) const |
Comparison operator. | |
virtual | ~EntityWithOwner (void) |
Virtual destructor. | |
virtual std::string | getClassName (void) const |
Returns demangled class name. | |
void | set_owner (EntityWithOwner *owr) |
Assigns the owner of the object. | |
EntityWithOwner * | Owner (void) |
const EntityWithOwner * | Owner (void) const |
Friends | |
GEOM_FT | dot (const Vector3d &v1, const Vector3d &v2) |
GEOM_FT | dot (const Vector3d &v1, const FT_matrix &m) |
GEOM_FT | dot (const FT_matrix &m, const Vector3d &v1) |
Vector3d | cross (const Vector3d &v1, const Vector3d &v2) |
Vector3d | operator^ (const Vector3d &v1, const Vector3d &v2) |
FT_matrix | operator* (const FT_matrix &m, const Vector3d &v) |
Product of the vector times the matrix. | |
std::ostream & | operator<< (std::ostream &stream, const Vector3d &n) |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, boost::python::object > | PythonDict |
![]() | |
static void | resetStandardOutput (void) |
Reset the standard output streams to its defaults buffers. | |
![]() | |
static int | getVerbosityLevel (void) |
Get the value of the verbosity level. | |
static void | setVerbosityLevel (const int &) |
Set the value of the verbosity level. | |
![]() | |
template<class T > | |
void | string_to (T &, const std::string &) const |
![]() | |
bool | isEqual (const EntityWithProperties &) const |
Return true if both objects are equal. | |
![]() | |
virtual bool | isEqual (const EntityWithOwner &) const |
Return true if both objects are equal. | |
![]() | |
static CommandEntity * | entcmd_cast (boost::any &data) |
![]() | |
static int | verbosity = 1 |
Object that owns THIS ONE. More... | |
Vector en tres dimensiones.
Return the vector obtained from projecting v onto the perpendicular direction to this vector.
Used to orthogonalize a base.