Package: graphene

Function graphene:rect-scale

Lambda List

graphene:rect-scale (rect sh sv result)

Arguments

rect -- a graphene:rect-t instance
sh -- a number coerced to a single float for the horizontal scale factor
sv -- a number coerced to a single float for the vertical scale factor
result -- a graphene:rect-t instance

Return Value

The graphene:rect-t instance with the scaled rectangle.

Details

Scales the size and origin of a rectangle horizontaly by sh, and vertically by sv. The returned rectangle is normalized.
 

See also

2025-3-8