FL.objects.Point.Point
- class FL.objects.Point.Point(p_or_x: Point | float | None = None, y: float | None = None)
Bases:
Copyable- __init__(p_or_x: Point | float | None = None, y: float | None = None) None
Point - base class to represent point
- 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
Methods
Add(p)Same as Shift(Point p)
Assign(p_or_x[, y])Assigns new values to a Point
Mul(s)Multiplies Point's position to s value
Shift(p_or_x[, y])Shifts Point on a position defined by p or x and y values
Sub(p)Subtracts p coordinates from the current Point
Transform(m)Applies Matrix transformation to the Point
__init__([p_or_x, y])Point - base class to represent point
fake_update([parent])Is called from FontLab.UpdateFont()
Attributes
Point's parent object
Horizontal position of the point
Vertical position of the point