return the distance between lines, planes, or points - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Package : Multivariate Calculus : Lines and Planes : Student/MultivariateCalculus/Distance

Student[MultivariateCalculus][Distance] - return the distance between lines, planes, or points

Calling Sequence

Distance(pl1, pl2)

Parameters

pl1, pl2

-

Line, Plane, list; Line or Plane object defined in Student[MultivariateCalculus], or a point in 2D or 3D.

Description

• 

The Distance command calculates the distance between two lines, planes or points.

• 

If the arguments intersect, the Distance command returns zero.

• 

The answer is not necessarily simplified. The command evalf can be used to convert the answer to a floating point value.

Examples

withStudent[MultivariateCalculus]:

l1:=Line0,2,6,10,15,20:

l2:=Line3,7,3,2,3,4:

AreParallell1,l2

true

(1)

d:=Distancel1,l2

d:=129123829

(2)

The floating point value of this expression can be obtained with evalf.

evalfd

6.533732100

(3)

Distancel1,5,6,2

12954529

(4)

The distance between two intersecting lines is 0.

l3:=Line3,7,3,7,1,6:

Intersectsl2,l3

true

(5)

Distancel2,l3

0

(6)

l4:=Line5,2,9,2:

l5:=Line0,0,9,2:

Distancel4,l5

288585

(7)

p1:=Plane1,0,0,0,2,0,0,0,3:

Distancep1,2,3,4

237

(8)

p2:=Plane10x+2y2z=5:

p3:=Plane5x+yz=1:

Distancep2,p3

163

(9)

l6:=Line2,3,10,7,0,0:

p2:=Plane3,6,1,0,0,7:

Intersectsp2,l6

false

(10)

Distancep2,l6

11

(11)

See Also

Student[MultivariateCalculus], Student[MultivariateCalculus][Line], Student[MultivariateCalculus][Plane], Student[MultivariateCalculus][Equal], Student[MultivariateCalculus][AreParallel], Student[MultivariateCalculus][Intersects]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam