std-distance-2d


Synopsis

(std-distance-2d <p1> <p2>)

Description

STD-DISTANCE-2D returns the distance of the two points projected to the current UCS.

Examples:

;;; 2D distance (omitting z values)
(defun STD-DISTANCE-2D (p1 p2)
  (distance (xy-of p1) (xy-of p2)))

Arguments

p1, p2: Points, either 2D or 3D. A point is a list of 2 or 3 numbers

Return Value

A real number.

Side Effects

None.

Module

(std-require 'STDPOINT)

Defined in STDPOINT

Note: Before version 0.4001 it was in STDENT!