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 float with the distance between the two points
dx -- a float with the distance component of the x axis
dy -- a float with the distance component of the y axis

Details

Computes the distance between the two given points.

Example

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

See also

2024-1-20