fgPointU

fontgate.fgPointU = class fgPointU(object)

PointU representation

Constructors:
  fgPointU() - default
  fgPointU(fgPoint) - copy
  fgPointU(fgPointU) - copy
  fgPointU(fgPoint, float u)
  fgPointU(tuple(float x, float y, float u))
  fgPointU(float x, float y, float u)

Math Operations:
  fgPointU + fgPoint/fgPointU
  fgPointU - fgPoint/fgPointU
  fgPointU * fgPoint/fgPointU
  fgPointU * float - vector product
  fgPointU / float
  fgPointU << fgPointU - True if first point is less or equal to second
  fgPointU >> fgPointU - True if first point is greater or equal to second
  fgPointU ^ fgPointU - 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(fgPointU) or assign(float x, float y, float u)
clear(...)
clear()
close_to(...)
bool close_to(fgPointU[, 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(fgPointU 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

u
(float)
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.fgPointU.angleDiff = angleDiff(...)
fgPoint angleDiff(fgPoint)

angleSum

fontgate.fgPointU.angleSum = angleSum(...)
fgPoint angleSum(fgPoint)

asDict

fontgate.fgPointU.asDict = asDict(...)
represent object as dictionary

assign

fontgate.fgPointU.assign = assign(...)
assign(fgPointU) or assign(float x, float y, float u)

asTuple

fontgate.fgPointU.asTuple = asTuple(...)
represent object as tuple

clear

fontgate.fgPointU.clear = clear(...)
clear()

close_to

fontgate.fgPointU.close_to = close_to(...)
bool close_to(fgPointU[, d=0.00001])

collinear

fontgate.fgPointU.collinear = collinear(...)
bool collinear(fgPoint)

direction

fontgate.fgPointU.direction = direction(...)
fgPoint direction()

dist

fontgate.fgPointU.dist = dist(...)
float dist(fgPoint)

dist2

fontgate.fgPointU.dist2 = dist2(...)
float dist2(fgPoint)

distance

fontgate.fgPointU.distance = distance(...)
float distance(fgPoint[, horizontal=false]

doubleScale

fontgate.fgPointU.doubleScale = doubleScale(...)
scale(fgPoint) or scale(float sx, float sy)

flip

fontgate.fgPointU.flip = flip(...)
flip()

flipped

fontgate.fgPointU.flipped = flipped(...)
fgPoint flipped()

ix

fontgate.fgPointU.ix = ix(...)
int ix() - integer fast

iy

fontgate.fgPointU.iy = iy(...)
int iy() - integer fast

len

fontgate.fgPointU.len = len(...)
float len()

len2

fontgate.fgPointU.len2 = len2(...)
float len2()

normal

fontgate.fgPointU.normal = normal(...)
fgPoint normal()

rotate

fontgate.fgPointU.rotate = rotate(...)
fgPoint rotate(fgPointU v, fgPoint c)

round

fontgate.fgPointU.round = round(...)
fgPoint round([doRound=true])

rx

fontgate.fgPointU.rx = rx(...)
int rx() - integer rounded

ry

fontgate.fgPointU.ry = ry(...)
int ry() - integer rounded

transform

fontgate.fgPointU.transform = transform(...)
transform(fgMatrix)

transformed

fontgate.fgPointU.transformed = transformed(...)
fgPoint transformed(fgMatrix)

u

fontgate.fgPointU.u
(float)

value

fontgate.fgPointU.value = value(...)
float value([horizontal=true])

x

fontgate.fgPointU.x
(float)

y

fontgate.fgPointU.y
(float)

zero

fontgate.fgPointU.zero = zero(...)
bool zero()