Skip to content

# `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

__cmp__(...)

      x.__cmp__(y) <==> cmp(x,y)

__delattr__(...)

      x.__delattr__('name') <==> del x.name

__getattribute__(...)

      x.__getattribute__('name') <==> x.name

__init__(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

__repr__(...)

      x.__repr__() <==> repr(x)

__setattr__(...)

      x.__setattr__('name', value) <==> x.name = value

__str__(...)

      x.__str__() <==> str(x)

angle(...)

      float angle()

angleTo(...)

      float angleTo(fgVector)

asDict(...)

      represent object as dictionary

asTuple(...)

      represent object as tuple

bbox(...)

      fgRect bbox()

center(...)

      fgPoint center()

delta(...)

      fgPoint delta()

direction(...)

      fgPoint direction()

equivalent(...)

      bool equivalent(fgVector)

intersect(...)

      fgPoint/None intersect(fgVector) or (fgPoint, t)/None intersect(fgVector, bool get_t)

intersectY(...)

      float/None intersectY(float pos)

len(...)

      float len() - distance between q0 and q1

parallel(...)

      bool parallel(fgVector)

point(...)

      fgPoint point(float time)

time(...)

      float time(fgPoint)

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