
Examples of vector and point calculations
Meaning
Expression
Determines unit vector direction from point a to point b.
vec1(a,b)
Determines vector of length L in the direction from point a to
point b.
L*vec1(a,b)
Determines point b, which is a translation of the point a through
vector v.
a+v
Determines point b positioned 5 units away from point a under
the angle of 20 degrees. Note that [5<20] is a vector in polar
coordinates.
a+[5<20]
vec(a,b)
vec1(a,b)
L*vec1(a,b)
a+v
a
b
a
b
a
b
a
b
v
a
a+[5<20]
Calculate the Length of a Vector
The
abs
function calculates the length of a vector.
abs(v)
Calculates the length of vector v, a nonnegative real number.
In spherical coordinates (dist<ang<ang), the dist is the length of the vector.
The following example calculates the length of the vector [1,2,3]:
abs([1,2,3])
196 | Chapter 5
Summary of Contents for AUTOCAD 2006
Page 1: ...February 2005 AutoCAD 2006 Command Reference ...
Page 24: ......
Page 30: ...6 ...
Page 212: ...188 ...
Page 448: ...424 ...
Page 554: ...530 ...
Page 584: ...560 ...
Page 588: ...564 ...
Page 660: ...636 ...
Page 750: ...726 ...
Page 760: ...736 ...
Page 960: ...936 ...
Page 1194: ...1170 ...
Page 1244: ...Undo Reverses the most recent change made by TRIM 1220 Chapter 21 ...
Page 1310: ...1286 ...
Page 1328: ...1304 ...
Page 1354: ...Zoom Window Zooms to display an area specified by a rectangular window 1330 Chapter 26 ...
Page 1490: ......