You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
405 B
8 lines
405 B
2 years ago
|
|
||
|
Exercise 2.48: A directed line segment in the
|
||
|
plane can be represented as a pair of vectors—the vector running from the
|
||
|
origin to the start-point of the segment, and the vector running from the
|
||
|
origin to the end-point of the segment. Use your vector representation from
|
||
|
Exercise 2.46 to define a representation for segments with a constructor
|
||
|
make-segment and selectors start-segment and end-segment.
|