geom3d[segment] - define a segment
geom3d[dsegment] - define a directed segment
|
Calling Sequence
|
|
segment(seg, [P1, P2])
segment(seg, P1, P2)
dsegment(seg, [P1, P2])
dsegment(seg, P1, P2)
|
|
Parameters
|
|
seg
|
-
|
the name of the segment (or directed segment)
|
P1, P2
|
-
|
two points
|
|
|
|
|
Description
|
|
•
|
Given two distinct points P1 and P2, the line segment P1P2 is the set of convex combinations of P1 and P2. We call P1 and P2 the endpoints of segment P1P2.
|
•
|
Sometimes the ordering of P1 and P2 matters, and we speak of directed segment P1P2.
|
•
|
A line segment seg is defined by the two end points P1 and P2. Its two endpoints are P1 and P2.
|
•
|
A directed segment seg is defined by the two end points P1 and P2. The tail is P1 and the head P2.
|
•
|
To access the information relating to a segment (or directed segment) seg, use the following function calls:
|
form(seg)
|
returns the form of the geometric object
|
|
(i.e., segment3d if seg is a line segment, and dsegment3d if
|
|
seg is a directed segment.
|
DefinedAs(seg)
|
returns a list of two end points of seg if
|
|
seg is a segment, and a list of the tail and head of seg
|
|
if seg is a directed segment.
|
|
|
•
|
The command with(geom3d,segment) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
>
|
|
define two points A(0,0,0) and B(1,1,1)
>
|
|
define the segment AB
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?