Creates a transformation that represents a line between two points.
You must specify from, to, and thickness; other fields are optional.