geosolver.cluster
index
/home/rick/Programming/Python/GeoSolver/geosolver/cluster.py

Clusters are generalised constraints on sets of points in R^n. Cluster
types are Rigids, Hedgehogs and Balloons.

 
Classes
       
Angle
Distance
geosolver.multimethod.MultiVariable
Cluster
Balloon
Hedgehog
Rigid

 
class Angle
    Angle represents a known angle
 
  Methods defined here:
__eq__(self, other)
__hash__(self)
__init__(self, a, b, c)
Create a new Angle
 
keyword args:
 a - point variable
 b - point variable
 c - point variable
__str__(self)

 
class Balloon(Cluster)
    Balloon (or ScalableCluster) is set of points that is 
invariant to rotation, translation and scaling.
 
 
Method resolution order:
Balloon
Cluster
geosolver.multimethod.MultiVariable

Methods defined here:
__init__(self, variables)
Create a new balloon
 
keyword args:
 vars - collection of PointVar's
__str__(self)
copy(self)

Methods inherited from Cluster:
intersection(self, other)

Methods inherited from geosolver.multimethod.MultiVariable:
__repr__(self)

 
class Cluster(geosolver.multimethod.MultiVariable)
    A set of points, satisfying some constaint
 
  Methods defined here:
intersection(self, other)

Methods inherited from geosolver.multimethod.MultiVariable:
__init__(self, name=None)
__repr__(self)
__str__(self)

 
class Distance
    Distance represents a known distance
 
  Methods defined here:
__eq__(self, other)
__hash__(self)
__init__(self, a, b)
Create a new Distance
 
keyword args:
 a - point variable
 b - point variable
__str__(self)

 
class Hedgehog(Cluster)
    An Hedgehog (or AngleCluster) represents a set of points (M,X1...XN) 
where all angles a(Xi,M,Xj) are known.
 
 
Method resolution order:
Hedgehog
Cluster
geosolver.multimethod.MultiVariable

Methods defined here:
__init__(self, cvar, xvars)
Create a new hedgehog
 
keyword args:
 cvar - center variable 
 xvars - list of variables
__str__(self)
copy(self)

Methods inherited from Cluster:
intersection(self, other)

Methods inherited from geosolver.multimethod.MultiVariable:
__repr__(self)

 
class Rigid(Cluster)
    Rigid (or RigidCluster) represent a cluster of points variables 
that forms a rigid body.
 
 
Method resolution order:
Rigid
Cluster
geosolver.multimethod.MultiVariable

Methods defined here:
__init__(self, vars)
Create a new cluster
 
keyword args:
 vars - list of variables
__str__(self)
copy(self)

Methods inherited from Cluster:
intersection(self, other)

Methods inherited from geosolver.multimethod.MultiVariable:
__repr__(self)

 
Functions
       
binomial(n, k)
num_angles(cluster)
num_constraints(cluster)
num_distances(cluster)
over_angles(c1, c2)
over_angles_bb(b1, b2)
over_angles_bh(balloon, hog)
over_angles_cb(cluster, balloon)
over_angles_ch(cluster, hog)
over_angles_hh(hog1, hog2)
over_constraints(c1, c2)
returns the over-constraints (duplicate distances and angles) for
a pair of clusters (rigid, angle or scalable).
over_distances(c1, c2)
determine set of distances in c1 and c2
test()