fgPoint
fontgate.fgPoint = class fgPoint(object)
Point representation Constructors: fgPoint() - default fgPoint(fgPoint) - copy fgPoint(float x) fgPoint(tuple(float x, float y)) fgPoint(float x, float y) Math Operations: fgPoint + fgPoint fgPoint - fgPoint fgPoint * fgPoint fgPoint * float - vector product fgPoint / float fgPoint << fgPoint - True if first point is less or equal to second fgPoint >> fgPoint - True if first point is greater or equal to second fgPoint ^ fgPoint - scalar product
Methods
- __delattr__(...)
-
x.__delattr__('name') <==> del x.name
- __delitem__(...)
-
x.__delitem__(y) <==> del x[y]
- __delslice__(...)
-
x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported.
- __getattribute__(...)
-
x.__getattribute__('name') <==> x.name
- __getitem__(...)
-
x.__getitem__(y) <==> x[y]
- __getslice__(...)
-
x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.
- __lshift__(...)
-
x.__lshift__(y) <==> x<
- __rlshift__(...)
-
x.__rlshift__(y) <==> y<
- __rrshift__(...)
-
x.__rrshift__(y) <==> y>>x
- __rshift__(...)
-
x.__rshift__(y) <==> x>>y
- __setattr__(...)
-
x.__setattr__('name', value) <==> x.name = value
- __setitem__(...)
-
x.__setitem__(i, y) <==> x[i]=y
- __setslice__(...)
-
x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported.
- asDict(...)
-
represent object as dictionary
- asTuple(...)
-
represent object as tuple
- doubleScale(...)
-
scale(fgPoint) or scale(float sx, float sy)
- transformed(...)
-
fgPoint transformed(fgMatrix)
Descriptors
- x
-
(float)
- y
-
(float)
Attributes
- __new__ = <built-in method __new__ of type object>
-
T.__new__(S, ...) -> a new object with type S, a subtype of T
angleDiff
- fontgate.fgPoint.angleDiff = angleDiff(...)
-
fgPoint angleDiff(fgPoint)
angleSum
- fontgate.fgPoint.angleSum = angleSum(...)
-
fgPoint angleSum(fgPoint)
asDict
- fontgate.fgPoint.asDict = asDict(...)
-
represent object as dictionary
assign
- fontgate.fgPoint.assign = assign(...)
-
assign(fgPoint) or assign(float x, float y)
asTuple
- fontgate.fgPoint.asTuple = asTuple(...)
-
represent object as tuple
clear
- fontgate.fgPoint.clear = clear(...)
-
clear()
close_to
- fontgate.fgPoint.close_to = close_to(...)
-
bool close_to(fgPoint[, d=0.00001])
collinear
- fontgate.fgPoint.collinear = collinear(...)
-
bool collinear(fgPoint)
direction
- fontgate.fgPoint.direction = direction(...)
-
fgPoint direction()
dist
- fontgate.fgPoint.dist = dist(...)
-
float dist(fgPoint)
dist2
- fontgate.fgPoint.dist2 = dist2(...)
-
float dist2(fgPoint)
distance
- fontgate.fgPoint.distance = distance(...)
-
float distance(fgPoint[, horizontal=false]
doubleScale
- fontgate.fgPoint.doubleScale = doubleScale(...)
-
scale(fgPoint) or scale(float sx, float sy)
flip
- fontgate.fgPoint.flip = flip(...)
-
flip()
flipped
- fontgate.fgPoint.flipped = flipped(...)
-
fgPoint flipped()
ix
- fontgate.fgPoint.ix = ix(...)
-
int ix() - integer fast
iy
- fontgate.fgPoint.iy = iy(...)
-
int iy() - integer fast
len
- fontgate.fgPoint.len = len(...)
-
float len()
len2
- fontgate.fgPoint.len2 = len2(...)
-
float len2()
normal
- fontgate.fgPoint.normal = normal(...)
-
fgPoint normal()
rotate
- fontgate.fgPoint.rotate = rotate(...)
-
fgPoint rotate(fgPoint v, fgPoint c)
round
- fontgate.fgPoint.round = round(...)
-
fgPoint round([doRound=true])
rx
- fontgate.fgPoint.rx = rx(...)
-
int rx() - integer rounded
ry
- fontgate.fgPoint.ry = ry(...)
-
int ry() - integer rounded
transform
- fontgate.fgPoint.transform = transform(...)
-
transform(fgMatrix)
transformed
- fontgate.fgPoint.transformed = transformed(...)
-
fgPoint transformed(fgMatrix)
value
- fontgate.fgPoint.value = value(...)
-
float value([horizontal=true])
x
- fontgate.fgPoint.x
-
(float)
y
- fontgate.fgPoint.y
-
(float)
zero
- fontgate.fgPoint.zero = zero(...)
-
bool zero()