Vector

class Vector

In the following constructors, additional keyword arguments can be provided to set properties of the new Vector.

Vector(p1, p2)

Construct the Vector which translates the point p1 to the point p2.

Vector(x, y)

Construct the Vector with the given x and y components.

A Vector has the following common properties: