Open Babel  3.0
Classes | Namespaces | Macros | Functions | Variables
vector3.h File Reference
#include <ostream>
#include <math.h>
#include <iostream>
#include <openbabel/babelconfig.h>

Go to the source code of this file.

Classes

class  vector3
 

Namespaces

 OpenBabel
 

Macros

#define RAD_TO_DEG   (180.0/M_PI)
 
#define DEG_TO_RAD   (M_PI/180.0)
 

Functions

std::ostream & operator<< (std::ostream &, const vector3 &)
 
vector3 operator+ (const vector3 &v1, const vector3 &v2)
 
vector3 operator- (const vector3 &v1, const vector3 &v2)
 
vector3 operator- (const vector3 &v)
 
vector3 operator* (const double &c, const vector3 &v)
 
vector3 operator* (const vector3 &v, const double &c)
 
vector3 operator/ (const vector3 &v, const double &c)
 
vector3 operator* (const matrix3x3 &m, const vector3 &v)
 
double dot (const vector3 &v1, const vector3 &v2)
 
vector3 cross (const vector3 &, const vector3 &)
 
double vectorAngle (const vector3 &v1, const vector3 &v2)
 
double CalcTorsionAngle (const vector3 &a, const vector3 &b, const vector3 &c, const vector3 &d)
 
double Point2PlaneSigned (vector3 a, vector3 b, vector3 c, vector3 d)
 
double Point2Plane (vector3 a, vector3 b, vector3 c, vector3 d)
 
double Point2PlaneAngle (const vector3 a, const vector3 b, const vector3 c, const vector3 d)
 
double Point2Line (const vector3 &a, const vector3 &b, const vector3 &c)
 

Variables

const vector3 VZero
 
const vector3 VX
 
const vector3 VY
 
const vector3 VZ
 

Detailed Description

Handle 3D coordinates.

Macro Definition Documentation

◆ RAD_TO_DEG

#define RAD_TO_DEG   (180.0/M_PI)

◆ DEG_TO_RAD

#define DEG_TO_RAD   (M_PI/180.0)