Beruflich Dokumente
Kultur Dokumente
Dot Product
or with two column vectors, multiply one by the transpose of the other (works either way)
Cross Product
Here, cosine is substituted for its form from the dot product, which can then be simplified.
Vector projection takes the scalar projection and multiplies it by the unit vector in the direction of b:
Here we can use the property that a vector dotted with itself gives that vector's magnitude squared. In
either case, the terms are squared and added together.
Distance:
From some point a to a line
pick some point on the line, b
find the vector ab
get v from the line L = p + tv
The distance from the point to the line is given by
This can be thought of as the area of the parallelogram divided by the base, which gives the height.
The distance of b along the line doesn't matter, because it doesn't change the distance of the point
to the line.
The vector from the line to the point can also be found by ab v, where v is the vector projection of ab
on the line.
From some point a to a plane
pick some point on the plane, b
find the vector from this new point to the given floating point (CS joke here)
find the normal vector n of the plane using cross product
The distance can be found using projection:
If we have a plane in cartesian form and a point P(x, y, z),
we can substitute the point into the plane and use the formula
Between two lines
If the lines are parallel, pick a point on one line and find the distance to the other line.
Otherwise for lines (a + su) and (b + tv):
The smallest distance between the two lines is the projection of a vector between the two lines (we can
use a and b to get one) onto the normal of the two lines.
This is given by