![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <point.h>
Public Member Functions | |
Point2D () | |
Point2D (double xv, double yv) | |
~Point2D () | |
Point2D (const Point2D &other) | |
Point2D (const Point3D &p3d) | |
construct from a Point3D (ignoring the z coordinate) More... | |
virtual Point * | copy () const |
unsigned int | dimension () const |
double | operator[] (unsigned int i) const |
double & | operator[] (unsigned int i) |
Point2D & | operator= (const Point2D &other) |
Point2D & | operator+= (const Point2D &other) |
Point2D & | operator-= (const Point2D &other) |
Point2D & | operator*= (double scale) |
Point2D & | operator/= (double scale) |
Point2D | operator- () const |
void | normalize () |
void | rotate90 () |
double | length () const |
double | lengthSq () const |
double | dotProduct (const Point2D &other) const |
double | angleTo (const Point2D &other) const |
double | signedAngleTo (const Point2D &other) const |
Point2D | directionVector (const Point2D &other) const |
![]() | |
virtual | ~Point () |
Public Attributes | |
double | x |
double | y |
|
inline |
|
inline |
Definition at line 357 of file point.h.
References dotProduct(), and normalize().
Referenced by RDDepict::computeAngle().
|
inlinevirtual |
Implements RDGeom::Point.
|
inlinevirtual |
Implements RDGeom::Point.
Definition at line 378 of file point.h.
References normalize(), x, and y.
|
inline |
|
inlinevirtual |
Implements RDGeom::Point.
|
inlinevirtual |
Implements RDGeom::Point.
|
inlinevirtual |
Implements RDGeom::Point.
Definition at line 329 of file point.h.
Referenced by angleTo(), RDDepict::computeNormal(), and directionVector().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
double RDGeom::Point2D::x |
Definition at line 260 of file point.h.
Referenced by RDDepict::computeNormal(), directionVector(), dotProduct(), RDKit::MolDraw2Dwx::drawChar(), RDKit::MolDraw2Dwx::drawLine(), RDKit::MolDraw2Dwx::drawPolygon(), operator+=(), operator-(), operator-=(), operator=(), RDDepict::rotationDir(), and signedAngleTo().
double RDGeom::Point2D::y |
Definition at line 260 of file point.h.
Referenced by RDDepict::computeNormal(), directionVector(), dotProduct(), RDKit::MolDraw2Dwx::drawChar(), RDKit::MolDraw2Dwx::drawLine(), RDKit::MolDraw2Dwx::drawPolygon(), operator+=(), operator-(), operator-=(), operator=(), RDDepict::rotationDir(), and signedAngleTo().