RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
RDGeom::PointND Class Reference

#include <point.h>

Inheritance diagram for RDGeom::PointND:
RDGeom::Point

Public Types

typedef boost::shared_ptr< RDNumeric::Vector< double > > VECT_SH_PTR
 

Public Member Functions

 PointND (unsigned int dim)
 
 PointND (const PointND &other)
 
Pointcopy () const override
 
 ~PointND () override=default
 
double operator[] (unsigned int i) const override
 
double & operator[] (unsigned int i) override
 
void normalize () override
 
double length () const override
 
double lengthSq () const override
 
unsigned int dimension () const override
 
PointNDoperator= (const PointND &other)
 
PointNDoperator+= (const PointND &other)
 
PointNDoperator-= (const PointND &other)
 
PointNDoperator*= (double scale)
 
PointNDoperator/= (double scale)
 
PointND directionVector (const PointND &other)
 
double dotProduct (const PointND &other) const
 
double angleTo (const PointND &other) const
 
- Public Member Functions inherited from RDGeom::Point
virtual ~Point ()
 

Detailed Description

Definition at line 407 of file point.h.

Member Typedef Documentation

◆ VECT_SH_PTR

typedef boost::shared_ptr<RDNumeric::Vector<double> > RDGeom::PointND::VECT_SH_PTR

Definition at line 409 of file point.h.

Constructor & Destructor Documentation

◆ PointND() [1/2]

RDGeom::PointND::PointND ( unsigned int dim)
inline

Definition at line 411 of file point.h.

◆ PointND() [2/2]

RDGeom::PointND::PointND ( const PointND & other)
inline

Definition at line 416 of file point.h.

◆ ~PointND()

RDGeom::PointND::~PointND ( )
overridedefault

Member Function Documentation

◆ angleTo()

double RDGeom::PointND::angleTo ( const PointND & other) const
inline

Definition at line 504 of file point.h.

References length().

◆ copy()

Point * RDGeom::PointND::copy ( ) const
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 422 of file point.h.

◆ dimension()

unsigned int RDGeom::PointND::dimension ( ) const
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 458 of file point.h.

Referenced by directionVector().

◆ directionVector()

PointND RDGeom::PointND::directionVector ( const PointND & other)
inline

Definition at line 491 of file point.h.

References dimension(), normalize(), and PRECONDITION.

◆ dotProduct()

double RDGeom::PointND::dotProduct ( const PointND & other) const
inline

Definition at line 500 of file point.h.

◆ length()

double RDGeom::PointND::length ( ) const
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 452 of file point.h.

Referenced by angleTo().

◆ lengthSq()

double RDGeom::PointND::lengthSq ( ) const
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 454 of file point.h.

◆ normalize()

void RDGeom::PointND::normalize ( )
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 450 of file point.h.

Referenced by directionVector().

◆ operator*=()

PointND & RDGeom::PointND::operator*= ( double scale)
inline

Definition at line 481 of file point.h.

◆ operator+=()

PointND & RDGeom::PointND::operator+= ( const PointND & other)
inline

Definition at line 471 of file point.h.

◆ operator-=()

PointND & RDGeom::PointND::operator-= ( const PointND & other)
inline

Definition at line 476 of file point.h.

◆ operator/=()

PointND & RDGeom::PointND::operator/= ( double scale)
inline

Definition at line 486 of file point.h.

◆ operator=()

PointND & RDGeom::PointND::operator= ( const PointND & other)
inline

Definition at line 460 of file point.h.

◆ operator[]() [1/2]

double RDGeom::PointND::operator[] ( unsigned int i) const
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 442 of file point.h.

◆ operator[]() [2/2]

double & RDGeom::PointND::operator[] ( unsigned int i)
inlineoverridevirtual

Implements RDGeom::Point.

Definition at line 446 of file point.h.


The documentation for this class was generated from the following file: