User Tools

Site Tools


CIGAL Reference Manual, Chapter 3 (Functions): LENGTH

LENGTH -- Calculate the distance between 2 points or along a vector path

usage: value = length(vlist,scalefactor)
or: value = length(v1,v2)
or: value = length(x1,y1,x2,y2)
or: value = length(x1,y1,z1,x2,y2,z2)
or: value = length(v1)

LENGTH calculates distances between vectors. If the first argument is a list of vectors (VLIST), the distance is calculated along the entire vector list, in which case an optional SCALEFACTOR argument can be included to convert the calculated length from pixel units to arbitrary units.

If the first argument is not a list of vectors, then LENGTH calculates the distance between 2 points, entered as 2 VECTOR variables (V1 and V2), or by specifying the 2 sets of coordinates in either 2-dimensions (x,y) or 3-dimensions (x,y,z), or between the origin and a V1 if only a single vector argument is specified.

See Also:

CIGAL Home, CIGAL Manual, Functions List, Manual Help

jvs/cigal/manual/chapter3/length.txt · Last modified: 2014/08/04 16:03 (external edit)