![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <point.h>
Public Member Functions | |
| constexpr | Point2D () |
| constexpr | Point2D (double xv, double yv) |
| constexpr | ~Point2D () override |
| constexpr | Point2D (const Point2D &other) |
| constexpr | Point2D (const Point3D &p3d) |
| construct from a Point3D (ignoring the z coordinate) | |
| constexpr Point * | copy () const override |
| constexpr unsigned int | dimension () const override |
| constexpr double | operator[] (unsigned int i) const override |
| constexpr double & | operator[] (unsigned int i) override |
| constexpr Point2D & | operator= (const Point2D &other) |
| constexpr Point2D & | operator+= (const Point2D &other) |
| constexpr Point2D & | operator-= (const Point2D &other) |
| constexpr Point2D & | operator*= (double scale) |
| constexpr Point2D & | operator/= (double scale) |
| constexpr Point2D | operator- () const |
| void | normalize () override |
| constexpr void | rotate90 () |
| double | length () const override |
| constexpr double | lengthSq () const override |
| constexpr double | dotProduct (const Point2D &other) const |
| double | angleTo (const Point2D &other) const |
| double | signedAngleTo (const Point2D &other) const |
| Point2D | directionVector (const Point2D &other) const |
Public Member Functions inherited from RDGeom::Point | |
| virtual constexpr | ~Point () |
Public Attributes | |
| double | x {0.0} |
| double | y {0.0} |
|
inlineconstexpr |
Definition at line 289 of file point.h.
Referenced by angleTo(), copy(), directionVector(), dotProduct(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), Point2D(), and signedAngleTo().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Definition at line 397 of file point.h.
References normalize(), and Point2D().
Referenced by RDDepict::computeAngle(), and signedAngleTo().
|
inlinenodiscardconstexproverridevirtual |
|
inlineconstexproverridevirtual |
Implements RDGeom::Point.
|
inlineconstexpr |
|
inlineoverridevirtual |
|
inlineconstexproverridevirtual |
|
inlineoverridevirtual |
Implements RDGeom::Point.
Definition at line 365 of file point.h.
References length(), x, y, and zero_tolerance.
Referenced by angleTo(), RDDepict::computeNormal(), and directionVector().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexproverridevirtual |
|
inlineconstexproverridevirtual |
|
inlineconstexpr |
|
inline |
| double RDGeom::Point2D::x {0.0} |
Definition at line 286 of file point.h.
Referenced by directionVector(), dotProduct(), RDKit::MolDraw2Dwx::drawChar(), RDKit::MolDraw2Dwx::drawLine(), RDKit::MolDraw2Dwx::drawPolygon(), length(), lengthSq(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator[](), operator[](), Point2D(), Point2D(), Point2D(), rotate90(), RDDepict::rotationDir(), and signedAngleTo().
| double RDGeom::Point2D::y {0.0} |
Definition at line 287 of file point.h.
Referenced by directionVector(), dotProduct(), RDKit::MolDraw2Dwx::drawChar(), RDKit::MolDraw2Dwx::drawLine(), RDKit::MolDraw2Dwx::drawPolygon(), length(), lengthSq(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator[](), operator[](), Point2D(), Point2D(), Point2D(), rotate90(), and signedAngleTo().