Package rdkit :: Package Geometry :: Module rdGeometry :: Class Point2D
[hide private]
[frames] | no frames]

Class Point2D

 object --+    
          |    
??.instance --+
              |
             Point2D

A class to represent a two-dimensional point

Instance Methods [hide private]
 
AngleTo(...)
AngleTo( (Point2D)arg1, (Point2D)arg2) -> float : determines the angle between a vector to this point (between 0 and PI)
 
DirectionVector(...)
DirectionVector( (Point2D)arg1, (Point2D)arg2) -> Point2D : return a normalized direction vector from this point to another
 
DotProduct(...)
DotProduct( (Point2D)arg1, (Point2D)arg2) -> float : Dot product with another point
 
Length(...)
Length( (Point2D)arg1) -> float : Length of the vector
 
LengthSq(...)
LengthSq( (Point2D)arg1) -> float : Square of the length
 
Normalize(...)
Normalize( (Point2D)arg1) -> None : Normalize the vector (using L2 norm)
 
SignedAngleTo(...)
SignedAngleTo( (Point2D)arg1, (Point2D)arg2) -> float : determines the signed angle between a vector to this point (between 0 and 2*PI)
 
__add__(...)
__add__( (Point2D)arg1, (Point2D)arg2) -> object :
 
__div__(...)
__div__( (Point2D)arg1, (float)arg2) -> object :
 
__getinitargs__(...)
__getinitargs__( (Point2D)arg1) -> tuple :
 
__getitem__(...)
__getitem__( (Point2D)arg1, (int)arg2) -> float :
 
__iadd__(...)
__iadd__( (object)arg1, (Point2D)arg2) -> object :
 
__idiv__(...)
__idiv__( (Point2D)arg1, (float)arg2) -> Point2D : Scalar division
 
__imul__(...)
__imul__( (Point2D)arg1, (float)arg2) -> Point2D : Scalar multiplication
 
__init__(...)
__init__( (object)arg1) -> None : Default Constructor
 
__isub__(...)
__isub__( (object)arg1, (Point2D)arg2) -> object :
 
__len__(...)
__len__( (Point2D)arg1) -> int :
 
__mul__(...)
__mul__( (Point2D)arg1, (float)arg2) -> object :
 
__reduce__(...)
helper for pickle
 
__sub__(...)
__sub__( (Point2D)arg1, (Point2D)arg2) -> object :

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 40
  __safe_for_unpickling__ = True
Properties [hide private]
  x
  y

Inherited from object: __class__

Method Details [hide private]

AngleTo(...)

 

AngleTo( (Point2D)arg1, (Point2D)arg2) -> float :
    determines the angle between a vector to this point (between 0 and PI)

    C++ signature :
        double AngleTo(RDGeom::Point2D {lvalue},RDGeom::Point2D)

DirectionVector(...)

 

DirectionVector( (Point2D)arg1, (Point2D)arg2) -> Point2D :
    return a normalized direction vector from this point to another

    C++ signature :
        RDGeom::Point2D DirectionVector(RDGeom::Point2D {lvalue},RDGeom::Point2D)

DotProduct(...)

 

DotProduct( (Point2D)arg1, (Point2D)arg2) -> float :
    Dot product with another point

    C++ signature :
        double DotProduct(RDGeom::Point2D {lvalue},RDGeom::Point2D)

Length(...)

 

Length( (Point2D)arg1) -> float :
    Length of the vector

    C++ signature :
        double Length(RDGeom::Point2D {lvalue})

LengthSq(...)

 

LengthSq( (Point2D)arg1) -> float :
    Square of the length

    C++ signature :
        double LengthSq(RDGeom::Point2D {lvalue})

Normalize(...)

 

Normalize( (Point2D)arg1) -> None :
    Normalize the vector (using L2 norm)

    C++ signature :
        void Normalize(RDGeom::Point2D {lvalue})

SignedAngleTo(...)

 

SignedAngleTo( (Point2D)arg1, (Point2D)arg2) -> float :
    determines the signed angle between a vector to this point (between 0 and 2*PI)

    C++ signature :
        double SignedAngleTo(RDGeom::Point2D {lvalue},RDGeom::Point2D)

__add__(...)
(Addition operator)

 

__add__( (Point2D)arg1, (Point2D)arg2) -> object :

    C++ signature :
        _object* __add__(RDGeom::Point2D {lvalue},RDGeom::Point2D)

__div__(...)

 

__div__( (Point2D)arg1, (float)arg2) -> object :

    C++ signature :
        _object* __div__(RDGeom::Point2D {lvalue},double)

__getinitargs__(...)

 

__getinitargs__( (Point2D)arg1) -> tuple :

    C++ signature :
        boost::python::tuple __getinitargs__(RDGeom::Point2D)

__getitem__(...)
(Indexing operator)

 

__getitem__( (Point2D)arg1, (int)arg2) -> float :

    C++ signature :
        double __getitem__(RDGeom::Point2D,int)

__iadd__(...)

 

__iadd__( (object)arg1, (Point2D)arg2) -> object :

    C++ signature :
        _object* __iadd__(boost::python::back_reference<RDGeom::Point2D&>,RDGeom::Point2D)

__idiv__(...)

 

__idiv__( (Point2D)arg1, (float)arg2) -> Point2D :
    Scalar division

    C++ signature :
        RDGeom::Point2D {lvalue} __idiv__(RDGeom::Point2D {lvalue},double)

__imul__(...)

 

__imul__( (Point2D)arg1, (float)arg2) -> Point2D :
    Scalar multiplication

    C++ signature :
        RDGeom::Point2D {lvalue} __imul__(RDGeom::Point2D {lvalue},double)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :
    Default Constructor

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (float)arg2, (float)arg3) -> None :

    C++ signature :
        void __init__(_object*,double,double)

Overrides: object.__init__

__isub__(...)

 

__isub__( (object)arg1, (Point2D)arg2) -> object :

    C++ signature :
        _object* __isub__(boost::python::back_reference<RDGeom::Point2D&>,RDGeom::Point2D)

__len__(...)
(Length operator)

 

__len__( (Point2D)arg1) -> int :

    C++ signature :
        unsigned int __len__(RDGeom::Point2D {lvalue})

__mul__(...)

 

__mul__( (Point2D)arg1, (float)arg2) -> object :

    C++ signature :
        _object* __mul__(RDGeom::Point2D {lvalue},double)

__reduce__(...)

 
helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__sub__(...)
(Subtraction operator)

 

__sub__( (Point2D)arg1, (Point2D)arg2) -> object :

    C++ signature :
        _object* __sub__(RDGeom::Point2D {lvalue},RDGeom::Point2D)


Property Details [hide private]

x

Get Method:
unreachable(...)
Set Method:
unreachable(...)

y

Get Method:
unreachable(...)
Set Method:
unreachable(...)