| Home | Trees | Indices | Help |
|
|---|
|
|
A point in 2D space. Supports arithmetic operations on vectors.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| norm |
|
||
| normalized |
|
||
| pos |
|
||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Static Methods | |||
| DPoint |
|
||
| Properties | |
| x | |
| y | |
|
Inherited from |
|
| Method Details |
hash(x)
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
repr(x)
|
str(x)
|
Converts polar to cartesian coordinates. angle is in radians with 0 being the positive x axis. Assuming that y points downward, angle is clockwise.
|
Return the position of point rotated around the origin. getRotated(angle, pivot) -> pos Return the position of point rotated around pivot.
|
| Property Details |
x
|
y
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jan 8 16:09:01 2010 | http://epydoc.sourceforge.net |