PyGeo: a dynamic geometry toolkit

zHarmonic

complex point harmonic conjugate to the 3rd given complex point with the respect to the 1st and 2nd given complex points

constructors:
zHarmonic (zpoint1,zpoint2,zpoint3 )
zPoint (zpoint1,zpoint2,zpoint3 )

inherits

_zPoint

Methods defined in zHarmonic

f __init__(self, z1, z2, z3) ...

f findSelf(self) ...

Methods defined in _zPoint

f _zPoint__description(self, precision) ...

f transform(self, mat, zpoint) ...

the Mobius transformation represented by a given complex 2x2 matrix, assigned to the given point

f uRotate(self, ucenter, angle) ...

transform cuurent position as the effect of a rotation of the Riemann sphere around the given point as axis and the given angle

f toC(self, h_array) ...

set the position as the projection of a given homogenous complex number to the complex plane

f uVector(self) ...

return the vector represnting hte prjojection of the zpoint to the Riemann sphere

f to_uSphere(self, upoint) ...

set the given point to the projection of the zpoint to the Riemann sphere

f from_hermitian(self, h) ...

set the position on the zplane from the Hermitian matrix representation of the point

f setHermitian(self) ...

set the Hermitian matrix representation of the point

Methods defined in CPosition

f _init(self, re, im) ...

f __getitem__(self, index) ...

f get_name(self) ...

f set_x(self, value) ...

f set_y(self, value) ...

f get_x(self) ...

f get_y(self) ...

f get_z(self) ...

f get_pos(self) ...

f _CPosition__description(self, precision) ...

f __radd__(self, other) ...

f __add__(self, other) ...

f __sub__(self, other) ...

f __rsub__(self, other) ...

f __rmul__(self, other) ...

f __mul__(self, other) ...

f __truediv__(self, other) ...

f __div__(self, other) ...

f __rtruediv__(self, other) ...

f __rdiv__(self, other) ...

f __floordiv__(self, other) ...

f __rfloordiv__(self, other) ...

f __mod__(self, other) ...

f __rmod__(self, other) ...

f __divmod__(self, other) ...

f __rdivmod__(self, other) ...

f __pow__(self, other, mod=None) ...

f __rpow__(self, other, mod=None) ...

f __neg__(self) ...

f __pos__(self) ...

f __abs__(self) ...

f __coerce__(self, other) ...

f __eq__(self, other) ...

f __ne__(self, other) ...

f __lt__(self, other) ...

f __gt__(self, other) ...

f __le__(self, other) ...

f __ge__(self, other) ...

f __int__(self) ...

f __long__(self) ...

f arg(self) ...

f mod2(self) ...

f mod(self) ...

f distance(self, other) ...

f distanceSquared(self, other) ...

f set(self, other) ...

Methods defined in Element

f __iter__(self) ...

make all objects iterable, returning "self" in the simplest instance

f __len__(self) ...

length of the iterable assocaited with the object

f update(self) ...

method that is called on change events, calling reoutines to find current position based on dependecies, current visibility status, etc.

f rmatrix(self) ...

each object has a 4x4 matrix associated with it, representing the object's axis of rotation and translation from the origin. Needed for the implementation of the Projection class. Set to the identity matrix by default.

f _allreal(self) ...

test whether any Elements on which there is a dependency have become 'null', i.e. not calculatable - .e.g, imaginary when working within real space

f setshow(self) ...

check for change in visibiliy status and toggle visibility as necessary, reset change flag to 0 on effectuating change in visiblity

f _togglenull(self) ...

toggle the 'null' flag, indicating whether the current postion of the object's position is visible - e.g. is real when working in real space

f _setnull(self, to_null=True) ...

set object and the objects dependant on it to 'null' when its position cannot be made visible- e.g. imaginary when working in real space.

f init(self) ...

method to be overridden for objects needing an supplementary initiliazation routine after the call to __init___

f reset(self) ...

Routine to return Element to intial position. Default is to run update routine

f reset_trace(self) ...

method to be overridden to erase loci of objects that are traceable

f reset_trace_curves(self) ...

method to be overridden to erase curves traced by point objects

Methods defined in zdrawPoint

f _redraw(self) ...

send current position in scene to render object, and render in accordance with style sttribute

f do_trace(self) ...

If on update, traced point has moved within limits defined by 'mintrace' and 'maxtrace' append its new position to the trace curve

f draw(self) ...

For consistency in iterating Element's rendering objects, all elements rendering information is in a list called self.rend. In the case of Points, it is either a single element list, containing a cvisual sphere object, or a 2 element list with each element an oriented cvisual pyramid object, which together form a diamond shape representing the point

f povout(self, buf) ...

export the scene's points to PovRay SDL

Attributes

a real

<member 'real' of 'CPosition' objects>

a __opts__

['color',
 'initcolor',
 'trace',
 'level',
 'texture',
 'extend',
 'povout',
 'label',
 'append',
 'export',
 'pointsize',
 'tracewidth',
 'tracecolor',
 'maxtrace',
 'mintrace',
 'fontsize',
 'fontcolor',
 'fontXofffset',
 'fontYofffset',
 'tracecurve',
 'style']

a x

The real coordinate

a __doc_hints__

{'args': ['zpoint1,zpoint2,zpoint3'], 'factory': 'zPoint'}

a pos

The 3 (z=0) coordinate drawing position vector

a imag

<member 'imag' of 'CPosition' objects>

a z

The complex plane z position

a PREC_STR

12

a __slots__

['real', 'imag']

a y

The imag coordinate

See the source for more information.