Baseclasses
Definition
An instance dpl of type DPolyline is a list dp1,..., dpn of double points dpi.
#include < AGD/DPolyline.h >
Creation
DPolyline | dpl | creates an instance dpl of type DPolyline initialized to an empty list. |
Operations
DPoint& | dpl.get_point(int i) | returns a reference to dpi if dpl is dp1,..., dpn. Precondition: 1 < = i < = n |
DPoint& | dpl.get_rev_point(int i) | returns a reference to dpn - i + 1 if dpl is dp1,..., dpn. Precondition: 1 < = i < = n |
DSegment | dpl.get_segment(int i) | returns the double segment [dpi, dpi + 1] if dpl is dp1,..., dpn. Precondition: 1 < = i < n |
DSegment | dpl.get_rev_segment(int i) | |
returns the double segment [dpn - i + 1, dpn - i] if dpl is dp1,..., dpn. Precondition: 1 < = i < n | ||
void | dpl.reverse() | reverses the list of double points. |
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13