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

__add__(...)
x.__add__(y) <==> x+y
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__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.
__div__(...)
x.__div__(y) <==> x/y
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__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.
__gt__(...)
x.__gt__(y) <==> x>y
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lshift__(...)
x.__lshift__(y) <==> x<

__lt__(...)
x.__lt__(y) <==> x

__mul__(...)
x.__mul__(y) <==> x*y
__ne__(...)
x.__ne__(y) <==> x!=y
__radd__(...)
x.__radd__(y) <==> y+x
__rdiv__(...)
x.__rdiv__(y) <==> y/x
__repr__(...)
x.__repr__() <==> repr(x)
__rlshift__(...)
x.__rlshift__(y) <==> y<

__rmul__(...)
x.__rmul__(y) <==> y*x
__rrshift__(...)
x.__rrshift__(y) <==> y>>x
__rshift__(...)
x.__rshift__(y) <==> x>>y
__rsub__(...)
x.__rsub__(y) <==> y-x
__rxor__(...)
x.__rxor__(y) <==> y^x
__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.
__str__(...)
x.__str__() <==> str(x)
__sub__(...)
x.__sub__(y) <==> x-y
__xor__(...)
x.__xor__(y) <==> x^y
angleDiff(...)
fgPoint angleDiff(fgPoint)
angleSum(...)
fgPoint angleSum(fgPoint)
asDict(...)
represent object as dictionary
asTuple(...)
represent object as tuple
assign(...)
assign(fgPoint) or assign(float x, float y)
clear(...)
clear()
close_to(...)
bool close_to(fgPoint[, d=0.00001])
collinear(...)
bool collinear(fgPoint)
direction(...)
fgPoint direction()
dist(...)
float dist(fgPoint)
dist2(...)
float dist2(fgPoint)
distance(...)
float distance(fgPoint[, horizontal=false]
doubleScale(...)
scale(fgPoint) or scale(float sx, float sy)
flip(...)
flip()
flipped(...)
fgPoint flipped()
ix(...)
int ix() - integer fast
iy(...)
int iy() - integer fast
len(...)
float len()
len2(...)
float len2()
normal(...)
fgPoint normal()
rotate(...)
fgPoint rotate(fgPoint v, fgPoint c)
round(...)
fgPoint round([doRound=true])
rx(...)
int rx() - integer rounded
ry(...)
int ry() - integer rounded
transform(...)
transform(fgMatrix)
transformed(...)
fgPoint transformed(fgMatrix)
value(...)
float value([horizontal=true])
zero(...)
bool zero()

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()