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(...)
determines the angle between a vector to this point (between 0 and PI)...
 
DirectionVector(...)
return a normalized direction vector from this point to another...
 
DotProduct(...)
Dot product with another point...
 
Length(...)
Length of the vector...
 
LengthSq(...)
Square of the length...
 
Normalize(...)
Normalize the vector (using L2 norm)...
 
SignedAngleTo(...)
determines the signed angle between a vector to this point (between 0 and 2*PI)...
 
__add__(...)
C++ signature:...
 
__div__(...)
C++ signature:...
 
__getinitargs__(...)
C++ signature:...
 
__getitem__(...)
C++ signature:...
 
__iadd__(...)
C++ signature:...
 
__idiv__(...)
Scalar division...
 
__imul__(...)
Scalar multiplication...
 
__init__(...)
Default Constructor...
 
__isub__(...)
C++ signature:...
 
__len__(...)
C++ signature:...
 
__mul__(...)
C++ signature:...
 
__reduce__(...)
helper for pickle
 
__sub__(...)
C++ signature:...

Inherited from unreachable.instance: __new__

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

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

Inherited from object: __class__

Method Details [hide private]

AngleTo(...)

 
determines the angle between a vector to this point (between 0 and PI)
C++ signature:
    AngleTo(RDGeom::Point2D {lvalue}, RDGeom::Point2D) -> double

DirectionVector(...)

 
return a normalized direction vector from this point to another
C++ signature:
    DirectionVector(RDGeom::Point2D {lvalue}, RDGeom::Point2D) -> RDGeom::Point2D

DotProduct(...)

 
Dot product with another point
C++ signature:
    DotProduct(RDGeom::Point2D {lvalue}, RDGeom::Point2D) -> double

Length(...)

 
Length of the vector
C++ signature:
    Length(RDGeom::Point2D {lvalue}) -> double

LengthSq(...)

 
Square of the length
C++ signature:
    LengthSq(RDGeom::Point2D {lvalue}) -> double

Normalize(...)

 
Normalize the vector (using L2 norm)
C++ signature:
    Normalize(RDGeom::Point2D {lvalue}) -> void*

SignedAngleTo(...)

 
determines the signed angle between a vector to this point (between 0 and 2*PI)
C++ signature:
    SignedAngleTo(RDGeom::Point2D {lvalue}, RDGeom::Point2D) -> double

__add__(...)
(Addition operator)

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

__div__(...)

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

__getinitargs__(...)

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

__getitem__(...)
(Indexing operator)

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

__iadd__(...)

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

__idiv__(...)

 
Scalar division
C++ signature:
    __idiv__(RDGeom::Point2D {lvalue}, double) -> RDGeom::Point2D

__imul__(...)

 
Scalar multiplication
C++ signature:
    __imul__(RDGeom::Point2D {lvalue}, double) -> RDGeom::Point2D

__init__(...)
(Constructor)

 
Default Constructor
C++ signature:
    __init__(_object*) -> void*
C++ signature:
    __init__(_object*, double, double) -> void*

Overrides: object.__init__

__isub__(...)

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

__len__(...)
(Length operator)

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

__mul__(...)

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

__reduce__(...)

 
helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__sub__(...)
(Subtraction operator)

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


Property Details [hide private]

x

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

y

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