Copies a DlxSegment object.
Syntax: |
---|
DlxSegment.CopySegment(segment) |
Parameters
Parameter | Description |
---|---|
segment | DlxSegment object that is to be copied. |
Return Value
If the operation ends correctly, it returns true otherwise it returns false.
Example
Copy code | |
---|---|
var seg1 = new DlxSegment(10, 20, 50, 60);
var seg2 = new DlxSegment();
seg2.CopySegment(seg1);
seg1.p1.x++;
seg2.p1.x--;
DlxApp.Printf("seg1.p1.x=%.2f seg2.p1.x=%.2f", seg1.p1.x, seg2.p1.x);
|