RealPoint¶A RealPoint is a useful data structure for graphics operations.
It contains floating point x and y members. See Point for an integer version.
Note that the coordinates stored inside a RealPoint object may be negative and that RealPoint functions do not perform any check against negative values.
See also
Methods Summary¶| __init__ | Initializes to zero the x and y members. |
| Get | Return the point’s properties as a tuple. |
| __getitem__ | |
| __len__ | |
| __nonzero__ | |
| __reduce__ | |
| __repr__ | |
| __setitem__ | |
| __str__ | |
| __iadd__ | |
| __isub__ |
Class API¶A RealPoint is a useful data structure for graphics operations.
Possible constructors:
RealPoint()
RealPoint(x, y)
RealPoint(pt)
Overloaded Implementations:
__init__ (self)
Initializes to zero the x and y members.
__init__ (self, x, y)
Initializes the point with the given coordinates.
| Parameters: |
|
|---|
__init__ (self, pt)
Converts the given Point (with integer coordinates) to a RealPoint.
| Parameters: | pt (Point) – |
|---|
Return the point’s properties as a tuple.
| Return type: | tuple |
|---|---|
| Returns: | ( x, y ) |
Overloaded Implementations:
__iadd__ (self)
| Parameters: | sz (Size) – |
|---|
__iadd__ (self)
| Parameters: | pt (RealPoint) – |
|---|