dot product:
[a,b,c] * [x,y,z] = (ab) + (by) + (c*z)
magnitude (length):
ā„[a,b,c]ā„ = sqrt(a^2 + b^2 + c^2)
distance:
ā„u-vā„ = sqrt((u1-v2)^2 + (u2-v2) + (u3-v3)^2)
angle between:
cos^-1 (u*v)/(ā„uā„ā„vā„)
projection:
proj(u,v) = (uv)/(uu) * u
Normal Form: n * (x - p) = 0
General Form: Ax + By + C = 0
Vector Form: [x, y] = P + td
Parametric Form: x = _ + _t, y = _ + _t
n * (x - p) = 0 [3, 2] * ([x, y] - [0, 0]) = 0
Ax + By + C = 0 3x + 2y = 0
n * (x - p) = 0 [3,-4] * ([x,y] - [1,2]) = 0 [3x - 3, -4y + 8] = 0 [3x,-4y] = -5
x = P + td [x,y] = [1,0] + t[-1,3]
x = 1 - t y = 3t
x = P + td [x,y] [3,0,-2] + t[2,5,0]
x = 3 + 2t y = 5t z = -2
n * (x - p) = 0 [3,2,1] * ([x,y,z] - [0,1,0]) = 0
3x + 2y - 2 + z = 0 3x + 2y + z = 2
x = p + su + tv [x,y,z] = [0,0,0] + s[2,1,2] + t[-3,2,1]
x = 2s - 3t y = s + 2t z = 2s + t
x = p + td d = direction vector = PQ = Q - P d = [3,0] - [1,-2] = [2,2]
[x,y] = [1,-2] + t[2,2]
[x,y,z] = p + su + tv
u = PQ u = Q - P = [4,0,2] - [1,1,1] u = [3,-1,1]
v = PR v = R - P = [0,1,-1] - [1,1,1] v = [-1,0,-2]
[x,y,z] = [1,1,1] + s[3,-1,1] + t[-1,0,-2]
Set one var (x or y) to t x = t y = 3t - 1
[x,y] = P + td [x,y] = [0,1] + t[1,3]
Set one var (x or y) to t x = t y = 5/2 - 3/2t
[x,y] = P + td [x,y] = [0,5/2] + t[1,-3/2]
[x,y] = P + td
2x - 3y = 1 normal vector = [2,-3] direction vector = [3,2] (Change sign of first)
[x,y] = [2,-1] + t[3,2]
x = 1 - t y = 2 + 3t z = -2 -t
[x,y,z] = [1,2,-2] + t[-1,3,-1] [x,y,z] = [-1,0,3] + t[-1,3,-1]
Two vectors are perpendicular iff their dot product is 0
[4,-1,5] * [2,3,-1] = 8 - 3 - 5 = 0 Perpendicular
Two vectors are parallel iff their divided components are equal Not Parallel