Coordinates must work with unitless lenghts

Bug #1037535 reported by Johannes T
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyttt
Fix Committed
Undecided
Johannes T

Bug Description

Coordinates now only work with lenght objects that must have a unit. However, paths work with unitless coordinates. Therefore, it should be possible to initialize a coordinate from two floating point number. In this case, initializing a (or two) coord.Len objects can be completely avoided.

However, care must be taken not to mix unitless lengths and coord.Len objects.

Related branches

Revision history for this message
Johannes T (jo-ey) wrote :

coord.Len objects must be initialized with a unit now. coord.Point objects can now be initialized either from coord.Len objects (with unit) or from unitless numbers (floats). Care is taken not to mix lenghts with and without units in single object specifications.

Changed in pyttt:
assignee: nobody → Johannes T (jo-ey)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.