SensedMagnitude - Maple Help

Online Help

All Products    Maple    MapleSim


geometry

  

SensedMagnitude

  

find the sensed magnitude between two points

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SensedMagnitude(A, B)

Parameters

A, B

-

two points

Description

• 

The routine computes the SensedMagnitude between two points A and B.

• 

The sign of the sensed magnitude is determined by the relative position of the points.

Horizontal Coordinate

Vertical Coordinate

Sign of Sensed Magnitude

A is to the left of B

N/A

positive

B is to the left of A

N/A

negative

Horizontal coordinates are the same

A is below B

positive

Horizontal coordinates are the same

B is below A

negative

 

 

 

• 

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

Examples

withgeometry:

pointA,1,0,pointB,2,2:

SensedMagnitudeA,B

5

(1)

SensedMagnitudeB,A

5

(2)

pointA,1,0,pointB,3,0:

SensedMagnitudeA,B

4

(3)

SensedMagnitudeB,A

4

(4)

See Also

geometry[distance]