Closed mscofield0 closed 1 year ago
Would like to see this implemented as well. The lack of this feature is the only thing preventing me from using this library.
Hi, @mscofield0 Shapes in this library represent math abstractions rather then entities in some scene. Then segment.translate creates a new segment object, and not set a position of a segment entity in the scene. Box.rotate() method cannot be implemented because box defined as axis-aligned box, rotated box will become a polygon, this is not what you intended, I guess. But I agree, some classes lack of transformation methods
I'm trying to use a
Box
as a sort of underlying entity representation which has its own position and rotation, but I can see thatBox
, and many other classes do not have such methods on them. Would you be willing to add them?