![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <point.h>
Public Member Functions | |
| Point3D () | |
| Point3D (double xv, double yv, double zv) | |
| ~Point3D () | |
| Point3D (const Point3D &other) | |
| virtual Point * | copy () const |
| unsigned int | dimension () const |
| double | operator[] (unsigned int i) const |
| double & | operator[] (unsigned int i) |
| Point3D & | operator= (const Point3D &other) |
| Point3D & | operator+= (const Point3D &other) |
| Point3D & | operator-= (const Point3D &other) |
| Point3D & | operator*= (double scale) |
| Point3D & | operator/= (double scale) |
| Point3D | operator- () const |
| void | normalize () |
| double | length () const |
| double | lengthSq () const |
| double | dotProduct (const Point3D &other) const |
| double | angleTo (const Point3D &other) const |
| determines the angle between a vector to this point from the origin and a vector to the other point. More... | |
| double | signedAngleTo (const Point3D &other) const |
| determines the signed angle between a vector to this point from the origin and a vector to the other point. More... | |
| Point3D | directionVector (const Point3D &other) const |
| Returns a normalized direction vector from this point to another. More... | |
| Point3D | crossProduct (const Point3D &other) const |
| Cross product of this point with the another point. More... | |
| Point3D | getPerpendicular () const |
| Get a unit perpendicular from this point (treating it as a vector): More... | |
Public Member Functions inherited from RDGeom::Point | |
| virtual | ~Point () |
Public Attributes | |
| double | x |
| double | y |
| double | z |
|
inline |
|
inline |
determines the angle between a vector to this point from the origin and a vector to the other point.
The angle is unsigned: the results of this call will always be between 0 and M_PI
Definition at line 155 of file point.h.
References dotProduct(), and normalize().
Referenced by signedAngleTo().
|
inlinevirtual |
|
inlinevirtual |
Implements RDGeom::Point.
|
inline |
|
inline |
|
inlinevirtual |
Implements RDGeom::Point.
Definition at line 133 of file point.h.
References z.
Referenced by RDGeom::compute14Dist3D(), getPerpendicular(), and normalize().
|
inlinevirtual |
|
inlinevirtual |
Implements RDGeom::Point.
Definition at line 126 of file point.h.
References length().
Referenced by angleTo(), and directionVector().
|
inline |
|
inlinevirtual |
Implements RDGeom::Point.
Definition at line 61 of file point.h.
References PRECONDITION, x, y, and z.
|
inlinevirtual |
Implements RDGeom::Point.
Definition at line 72 of file point.h.
References PRECONDITION, x, y, and z.
|
inline |
| double RDGeom::Point3D::x |
Definition at line 47 of file point.h.
Referenced by crossProduct(), directionVector(), dotProduct(), RDKit::Drawing::DrawMol(), getPerpendicular(), operator+=(), operator-(), operator-=(), operator=(), operator[](), and signedAngleTo().
| double RDGeom::Point3D::y |
Definition at line 47 of file point.h.
Referenced by crossProduct(), directionVector(), dotProduct(), RDKit::Drawing::DrawMol(), getPerpendicular(), operator+=(), operator-(), operator-=(), operator=(), operator[](), and signedAngleTo().
| double RDGeom::Point3D::z |
Definition at line 47 of file point.h.
Referenced by crossProduct(), directionVector(), dotProduct(), getPerpendicular(), length(), lengthSq(), operator+=(), operator-(), operator-=(), operator=(), and operator[]().