Closed
Description
An Object-oriented Bounding Box is necessary for accurate hit detection by users. Since thorvg suggest the own scene graph and transformation, We might need to consider supporting an OBB rather than an AABB one.
Result Paint::bounds(float* x, float* y, float* w, float* h, bool transformed = false) const
-> Result Paint::bounds(Point[4]& pts, bool transformed = false) const //aabb or obb by transformed
One consideration is thovg should support the api that returns the original boudinding box of a shape. Otherwise, we can remove the current one.
Metadata
Metadata
Assignees
Type
Projects
Status
Done 1.0