CODEOBJ :: get_NDC_coord


protocol:
method

parameters:

none

result:

structure with members (x1, y1, x2, y2) for lines rectangles etc, or a structure with members (x, y, r) for circles

description:

Get the normalised device co-ordinates (NDC) of the object to which this method is applied.

NOTE normalised device co-ordinates are real numbers ranging from 0 to 1. The NDC of an object may be derived from a DWIN or another object (such as a group object). In the case where an object lies outside the object to which it belongs, the value of the real numbers may be much less than 0 and much greater than 1.

For a line x1,y1 is the start of the line and x2,y2 is the end of the line.

For a rectangle x1,y1 is the top left hand corner and x2,y2 is the bottom right hand corner.

For a circle x,y is the centre of the circle and r is the radius