compas icon indicating copy to clipboard operation
compas copied to clipboard

Vector operators

Open ZacZhangzhuo opened this issue 6 months ago • 4 comments

Describe the bug

for Vector peration *, like:

>>> u = Vector(1.000, 1.000, 0.000)
>>> u * 2
Vector(2.000, 2.000, 0.000)

if we do: Vector * float: It is fine. float * Vector: TypeError: unsupported operand type(s) for *: 'float' and 'Vector'.

Expected behavior I think this could be fixed with minimal effort just for a better user experience. :)

ZacZhangzhuo avatar Jan 04 '24 17:01 ZacZhangzhuo