Package: graphene

Function graphene:rect-intersection

Lambda List

graphene:rect-intersection (a b result)

Arguments

a -- a graphene:rect-t instance
b -- a graphene:rect-t instance
result -- a graphene:rect-t instance

Return Value

The graphene:rect-t instance with the result, or nil if the rectangles do not intersect.

Details

Computes the intersection of the two given rectangles. If the two rectangles do not intersect, result will contain a degenerate rectangle with origin in (0, 0) and a size of 0.
 

See also

2023-12-9