Package: graphene
Function graphene:rect-center
Lambda Listgraphene:rect-center (rect point) ArgumentsReturn ValueThe 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-08-09