Package: graphene
Function graphene:point3d-distance
Lambda Listgraphene:point3d-distance (a b delta) SyntaxArgumentsDetails Computes the distance between the two given points. Examples
(graphene:with-vec3 (v)
(graphene:with-point3ds ((p1 0 0 0) (p2 1 1 1))
(multiple-value-bind (dist delta)
(graphene:point3d-distance p1 p2 v)
(values dist
(graphene:vec3-to-float delta)))))
=> 1.7320508
=> (1.0 1.0 1.0) | See also |
2025-08-09