RDKit
Open-source cheminformatics and machine learning.
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)
 
virtual Pointcopy () const
 
 ~PointND ()
 
double operator[] (unsigned int i) const
 
double & operator[] (unsigned int i)
 
void normalize ()
 
double length () const
 
double lengthSq () const
 
unsigned int dimension () const
 
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 382 of file point.h.

Member Typedef Documentation

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

Definition at line 384 of file point.h.

Constructor & Destructor Documentation

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

Definition at line 386 of file point.h.

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

Definition at line 391 of file point.h.

RDGeom::PointND::~PointND ( )
inline

Definition at line 415 of file point.h.

Member Function Documentation

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

Definition at line 471 of file point.h.

References RDGeom::Point::length(), and length().

virtual Point* RDGeom::PointND::copy ( ) const
inlinevirtual

Implements RDGeom::Point.

Definition at line 397 of file point.h.

References RDNumeric::Vector< TYPE >::setVal().

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

Implements RDGeom::Point.

Definition at line 429 of file point.h.

Referenced by directionVector().

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

Definition at line 458 of file point.h.

References RDGeom::Point::dimension(), dimension(), and PRECONDITION.

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

Definition at line 467 of file point.h.

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

Implements RDGeom::Point.

Definition at line 425 of file point.h.

Referenced by angleTo().

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

Implements RDGeom::Point.

Definition at line 427 of file point.h.

void RDGeom::PointND::normalize ( )
inlinevirtual

Implements RDGeom::Point.

Definition at line 423 of file point.h.

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

Definition at line 448 of file point.h.

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

Definition at line 438 of file point.h.

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

Definition at line 443 of file point.h.

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

Definition at line 453 of file point.h.

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

Definition at line 431 of file point.h.

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

Implements RDGeom::Point.

Definition at line 417 of file point.h.

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

Implements RDGeom::Point.

Definition at line 421 of file point.h.


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