com.azalient.api.a.position
Interface IEdge

All Superinterfaces:
IRecalcListener

public interface IEdge
extends IRecalcListener

The edge of a bezier object implements this interface


Method Summary
 void draw(IDrawing drw, double width, IViewable v1, IViewable v2, int rgb)
          Draw the edge, with given width and colour index RGB.
 boolean inside(IPolygon polygon)
          Is any point on the edge inside the given polygon
 boolean isDashed()
          Is this edge dashed at any point along its length ?
 double length()
          The length of the edge, calculated as the sum of the length of N-1 straight line segments
 int n()
          The number of points, N, defining the edge.
 IXyz pt(int i)
          Returns edge point i, where i is [0..N-1].
 IXyz xyz(double distanceFromStart)
          The point at the given distance along the edge, measured from the start
 IXyz xyzE()
          The point at the End of the edge
 IXyz xyzS()
          The point at the Start of the edge
 
Methods inherited from interface com.azalient.api.draw.IRecalcListener
onRecalc
 

Method Detail

xyzS

IXyz xyzS()
The point at the Start of the edge


xyzE

IXyz xyzE()
The point at the End of the edge


xyz

IXyz xyz(double distanceFromStart)
The point at the given distance along the edge, measured from the start


pt

IXyz pt(int i)
Returns edge point i, where i is [0..N-1]. The edge is drawn as a sequence of N-1 straight line segments joining N points


n

int n()
The number of points, N, defining the edge.


length

double length()
The length of the edge, calculated as the sum of the length of N-1 straight line segments


draw

void draw(IDrawing drw,
          double width,
          IViewable v1,
          IViewable v2,
          int rgb)
Draw the edge, with given width and colour index RGB.


inside

boolean inside(IPolygon polygon)
Is any point on the edge inside the given polygon


isDashed

boolean isDashed()
Is this edge dashed at any point along its length ?