build123d
build123d copied to clipboard
Review the Location constructor and optimize the valid overloads
Some of the Location constructor's overloads seem confusing and may not be optimal. Specifically,
@overload
def __init__(
self, translation: VectorLike, direction: VectorLike, angle: float
):
seems misleading at best. The term translation and direction should also be reconsidered as there are position and orientation properties.
kwargs are currently not working in Location either Location((1,2,3),rotation=(10,20,30)) returns TypeError: Location.__init__() got an unexpected keyword argument 'rotation'