Package pyscript :: Module vectors :: Class R
[show private | hide private]
[frames | no frames]

Class R

object --+        
         |        
     PsObj --+    
             |    
             P --+
                 |
                R


Relative point vector
Method Summary
  __add__(self, o)
  __div__(self, o)
  __mul__(self, o)
  __neg__(self)
  __rmul__(self, o)
    Inherited from P
  __init__(self, **options)
can pass a dict of atributes to set
  __getitem__(self, i)
  __len__(self)
  __radd__(self, o)
  __rsub__(self, o)
  __setitem__(self, i, other)
  __sub__(self, o)
  body(self)
return postscript as string
  cross(self, other)
Calculate the cross product of two vectors
  _get_arg(self)
Get angle (argument) of the vector
  _get_length(self)
Return length of this vector (distance from origin to point)
  _get_U(self)
Return unit vector pointing in same direction
  _get_x(self)
Get the x coordinate
  _get_y(self)
Get the y coordinate
    Inherited from PsObj
self __call__(self, **options)
Set a whole lot of attributes in one go
string __repr__(self)
Return a representation of this object
string __str__(self)
return actual postscript string to generate object
Bbox bbox(self)
return objects bounding box this can be a Null Bbox() if object doesn't draw anything on the page.)
self copy(self, **options)
return a copy of this object with listed attributes modified
string postbody(self)
convenience function to allow clean subclassing
string prebody(self)
convenience function to allow clean subclassing
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Property Summary
    Inherited from P
  arg
  length
  U
  x
  y

Class Variable Summary
    Inherited from P
list point = [0, 0]

Generated by Epydoc 2.0 on Mon Apr 24 17:02:34 2006 http://epydoc.sf.net