Point

FL.Point = class Point(object)

===============================================
  Point - base class to represent point
===============================================
Integer or float values are accepted as coordinates

CONSTRUCTOR:
  Point() - generic constructor, creates a Point with zero coordinates
  Point(Point) - copy constructor
  Point(x, y) - creates a Point and assigns coordinates. x and y may be integer or float

ATTRIBUTES:
  parent (read-only) - Point's parent object
  x (integer or float) - horizontal position of the point
  y (integer or float) - vertical position of the point

OPERATIONS:
  == - compares two points, both coordinates must be equal
  add - Point must be second operand, both coordinates are added
  subtract - Point must be second operand, both coordinates are added
  multiply - second operand may be Point, float or Matrix. If second operand is Point, then result of scalar product is returned

METHODS
  Assign(Point p) | (x, y) - assigns new values to a Point
  Shift(Point p) | (x, y) - shifts Point on a position defined by p or x and y values
  Add(Point p) - same as Shift(Point p)
  Sub(Point p) - subtracts p coordinates from the current Point
  Mul(float s) - mutiplies Point's position to s value
  Transform(Matrix m) - applies Matrix transformation to the Point (see Matrix().__doc__)

Methods

Add(...)
Add(Point p) - same as Shift(Point p)
Assign(...)
Assign(Point p) | (x, y) - assigns new values to a Point
Mul(...)
Mul(float s) - mutiplies Point's position to s value
Shift(...)
Shift(Point p) | (x, y) - shifts Point on a position defined by p or x and y values
Sub(...)
Sub(Point p) - subtracts p coordinates from the current Point
Transform(...)
Transform(Matrix m) - applies Matrix transformation to the Point (see Matrix().__doc__)
__add__(...)
x.__add__(y) <==> x+y
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__mul__(...)
x.__mul__(y) <==> x*y
__radd__(...)
x.__radd__(y) <==> y+x
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(y) <==> y*x
__rsub__(...)
x.__rsub__(y) <==> y-x
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__sub__(...)
x.__sub__(y) <==> x-y

Descriptors

x
y

Attributes

__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Add

FL.Point.Add = Add(...)
Add(Point p) - same as Shift(Point p)

Assign

FL.Point.Assign = Assign(...)
Assign(Point p) | (x, y) - assigns new values to a Point

Mul

FL.Point.Mul = Mul(...)
Mul(float s) - mutiplies Point's position to s value

Shift

FL.Point.Shift = Shift(...)
Shift(Point p) | (x, y) - shifts Point on a position defined by p or x and y values

Sub

FL.Point.Sub = Sub(...)
Sub(Point p) - subtracts p coordinates from the current Point

Transform

FL.Point.Transform = Transform(...)
Transform(Matrix m) - applies Matrix transformation to the Point (see Matrix().__doc__)