![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <point.h>
Public Member Functions | |
Point2D () | |
Point2D (double xv, double yv) | |
~Point2D () override=default | |
Point2D (const Point2D &other) | |
Point2D (const Point3D &p3d) | |
construct from a Point3D (ignoring the z coordinate) More... | |
Point * | copy () const override |
unsigned int | dimension () const override |
double | operator[] (unsigned int i) const override |
double & | operator[] (unsigned int i) override |
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 () override |
void | rotate90 () |
double | length () const override |
double | lengthSq () const override |
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 {0.0} |
double | y {0.0} |
|
overridedefault |
|
inline |
|
inline |
Definition at line 372 of file point.h.
References dotProduct(), and normalize().
Referenced by RDDepict::computeAngle().
|
inlineoverridevirtual |
Implements RDGeom::Point.
|
inlineoverridevirtual |
Implements RDGeom::Point.
Definition at line 393 of file point.h.
References normalize(), x, and y.
|
inline |
|
inlineoverridevirtual |
Implements RDGeom::Point.
|
inlineoverridevirtual |
Implements RDGeom::Point.
|
inlineoverridevirtual |
Implements RDGeom::Point.
Definition at line 344 of file point.h.
Referenced by angleTo(), RDDepict::computeNormal(), and directionVector().
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
double RDGeom::Point2D::x {0.0} |
Definition at line 274 of file point.h.
Referenced by RDKit::StringRect::calcCorners(), RDDepict::computeNormal(), directionVector(), RDKit::StringRect::doesItIntersect(), dotProduct(), RDKit::MolDraw2Dwx::drawChar(), RDKit::MolDraw2Dwx::drawLine(), RDKit::MolDraw2Dwx::drawPolygon(), operator+=(), operator-(), operator-=(), operator=(), RDDepict::rotationDir(), and signedAngleTo().
double RDGeom::Point2D::y {0.0} |
Definition at line 275 of file point.h.
Referenced by RDKit::StringRect::calcCorners(), RDDepict::computeNormal(), directionVector(), RDKit::StringRect::doesItIntersect(), dotProduct(), RDKit::MolDraw2Dwx::drawChar(), RDKit::MolDraw2Dwx::drawLine(), RDKit::MolDraw2Dwx::drawPolygon(), operator+=(), operator-(), operator-=(), operator=(), RDDepict::rotationDir(), and signedAngleTo().