fgVector
fontgate.fgVector = class fgVector(object)
Vector representation Constructors: fgVector() - default fgVector(fgVector) - copy fgVector(fgPoint q0[, fgPoint q1]) - from one or two points fgVector(fgPoint, float l, float a)
Methods
- __delattr__(...)
-
x.__delattr__('name') <==> del x.name
- __getattribute__(...)
-
x.__getattribute__('name') <==> x.name
- __setattr__(...)
-
x.__setattr__('name', value) <==> x.name = value
- asDict(...)
-
represent object as dictionary
- asTuple(...)
-
represent object as tuple
- equivalent(...)
-
bool equivalent(fgVector)
- intersect(...)
-
fgPoint/None intersect(fgVector) or (fgPoint, t)/None intersect(fgVector, bool get_t)
- intersectY(...)
-
float/None intersectY(float pos)
Descriptors
- q0
-
(fgPoint)
- q1
-
(fgPoint)
Attributes
- __new__ = <built-in method __new__ of type object>
-
T.__new__(S, ...) -> a new object with type S, a subtype of T
angle
- fontgate.fgVector.angle = angle(...)
-
float angle()
angleTo
- fontgate.fgVector.angleTo = angleTo(...)
-
float angleTo(fgVector)
asDict
- fontgate.fgVector.asDict = asDict(...)
-
represent object as dictionary
asTuple
- fontgate.fgVector.asTuple = asTuple(...)
-
represent object as tuple
bbox
- fontgate.fgVector.bbox = bbox(...)
-
fgRect bbox()
center
- fontgate.fgVector.center = center(...)
-
fgPoint center()
delta
- fontgate.fgVector.delta = delta(...)
-
fgPoint delta()
direction
- fontgate.fgVector.direction = direction(...)
-
fgPoint direction()
equivalent
- fontgate.fgVector.equivalent = equivalent(...)
-
bool equivalent(fgVector)
intersect
- fontgate.fgVector.intersect = intersect(...)
-
fgPoint/None intersect(fgVector) or (fgPoint, t)/None intersect(fgVector, bool get_t)
intersectY
- fontgate.fgVector.intersectY = intersectY(...)
-
float/None intersectY(float pos)
len
- fontgate.fgVector.len = len(...)
-
float len() - distance between q0 and q1
parallel
- fontgate.fgVector.parallel = parallel(...)
-
bool parallel(fgVector)
point
- fontgate.fgVector.point = point(...)
-
fgPoint point(float time)
q0
- fontgate.fgVector.q0
-
(fgPoint)
q1
- fontgate.fgVector.q1
-
(fgPoint)
time
- fontgate.fgVector.time = time(...)
-
float time(fgPoint)