Internal classes/functions

Note that you should never need to use these objects directly. These are provided for developers only.

Binary operation objects

class cand.metrics.MetaBinop(lhs, op, rhs)[source]

Bases: object

class cand.metrics.BinopPoint(lhs, op, rhs)[source]

Bases: MetaBinop, Point

A Point which is a composite of points and vectors in different bases.

Each Vector and Point’s coordinate system depends on the Canvas object, and thus, we cannot immediately compute sums or differences of Vector or Point objects. Instead, this object represents a node in a tree of operations on Vector and Point objects which results in a Point object.

class cand.metrics.BinopVector(lhs, op, rhs)[source]

Bases: MetaBinop, Vector

A Vector which is a composite of points and vectors in different bases.

Each Vector and Point’s coordinate system depends on the Canvas object, and thus, we cannot immediately compute sums or differences of Vector or Point objects. Instead, this object represents a node in a tree of operations on Vector and Point objects which results in a Vector object.

height()[source]

Returns a BionpVector object representing the y component of the Vector.

width()[source]

Returns a BinopVector object representing the x component of the Vector.