Package: graphene

Function graphene:point-distance

Lambda List

graphene:point-distance (a b)

Syntax

(graphene:point-distance a b) => dist, dx, dy

Arguments

a -- a graphene:point-t instance
b -- a graphene:point-t instance
dist -- a single float for the distance between the two points
dx -- a single float for the distance component of the X axis
dy -- a single float for the distance component of the Y axis

Details

Computes the distance between the two given points.

Examples

(graphene:with-points ((a 0 0) (b 1 1))
  (graphene:point-distance a b))
=> 1.4142135
=> 1.0
=> 1.0    
 

See also

2025-4-1