**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:**\\ [[jvs:cigal:manual:chapter3:area|AREA(3)]], [[jvs:cigal:manual:chapter4:calfact|CALFACT(4)]], [[jvs:cigal:manual:chapter3:measure|MEASURE(3)]], [[jvs:cigal:manual:chapter2:sketch|SKETCH(2)]], [[jvs:cigal:manual:chapter1:vectors|VECTORS(1)]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter3|Functions List]], [[jvs:cigal:manual:help|Manual Help]]