Wishlist: some basic missing features
While using lib2geom I've run into a number of missing features that seem like they should be in lib2geom but aren't. Here's a wishlist of these features:
-
A test for whether a Rect
contains aParallelogram
. -
Ability to extract the affine transformation out of a Parallelogram
. -
A multiplication operator for IntPoint
*int
. -
Minimum bounding box calculation for ConvexHull
. -
Non-in-place modification: e.g. for Rect::expandBy
, a corresponding functionexpandedBy
. -
GLSL-style multiplication/division of vectors, i.e. component-by-component. -
A round
operator forRect
, in addition toroundInwards
/roundOutwards
. -
Length-squared of an IntPoint
. -
A 2x2 matrix class! Not all Affine
transformations need or want a translational part.
Most of them have out-of-tree implementations here. Apologies for any which do actually exist.
Edited by PBS