Package: graphene

Function graphene:rect-center

Lambda List

graphene:rect-center (rect point)

Arguments

rect -- a graphene:rect-t instance
point -- a graphene:point-t instance

Return Value

The graphene:point-t instance.

Details

Retrieves the coordinates of the center of the given rectangle.

Examples

(graphene:with-rect (rect 0 0 10 20)
  (graphene:with-point (point)
    (graphene:rect-center rect point)
    (values (graphene:point-x point)
            (graphene:point-y point))))
=> 5.0
=> 10.0    
 

See also

2025-3-8