Edge Object Properties

Edge objects are returned by an Edge query on a Geometry object. Note: edges may be arcs or straight segments.

Example:

var edge = geom.Edge(1);

Length

Return the true edge length (if an arc, the curvature is taken into account).

Example:

var len = geom.Edge(1).Length;

Angle(pos)

Return the angle of the tangent (in radians), relative to the standard X axis, of the edge point specified by ‘pos’. Angles are returned using the usual ‘count-clockwise is positive’ convention. Tangents point in the direction of the edge.

Parameters:

Pos: Edge position; usually specified as LayoutHost.START, MID, or END (or a value < 0, 0, or > 0).

Example:

var angle = geom.Edge(1).Angle(LayoutHost.START);

Normal(pos)

Return the angle of the normal (in radians), relative to the standard X axis, of the edge point specified by ‘pos’. Angles are returned using the usual ‘count-clockwise is positive’ convention. Normals are outward facing (or to the right in poly-lines) of the edge.

Parameters:

Pos: Edge position; usually specified as LayoutHost.START, MID, or END (or a value < 0, 0, or > 0).

Example:

var normal = geom.Edge(3).Normal(LayoutHost.END);

X(pos)

Return the X value of the edge point specified by ‘pos’.

Parameters:

Pos: Edge position; usually specified as LayoutHost.START, MID, or END (or a value < 0, 0, or > 0).

Example:

var x = geom.Edge(3).X(LayoutHost.END);

Y(pos)

Return the Y value of the edge point specified by ‘pos’.

Parameters:

Pos: Edge position; usually specified as LayoutHost.START, MID, or END (or a value < 0, 0, or > 0).

Example:

var y = geom.Edge(3).Y(LayoutHost.END);