Close
Close window
distance - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

geometry

distance

find the distance between two points, or a point and a line

Calling Sequence

distance(P1, P2)

distance(P1, l)

Parameters

P1, P2

-

points

l

-

line

Description

The routine computes the distance between two points P1 and P2 or between a point P1 and a line l.

The command with(geometry,distance) allows the use of the abbreviated form of this command.

Examples

>

withgeometry:

>

pointA,a,b,pointB,c,d:

>

distanceA,B

ac2+bd2

(1)
>

assumem0:

>

linel,mx+ny=w,x,y:

>

distanceA,l

am~+bnwm~2+n2

(2)
>

distanceB,l

cm~+dnwm~2+n2

(3)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /