Spatial geometry 2
Last updated
Last updated
Basic arithmetic operations such as addition, subtraction, multiplication and division are quite straight forward for points and vectors as they follow the same rules as single numbers. We just apply them coordinate-wise. What is important to familiarize here however is the geometric interpretation of those operations.
Semantically, addition and subtraction captures the concept of translation: adding a point and a vector has the sense of moving the point to a new location.
In general any negative scaling factors have the effect of not only changing a vector’s magnitude but also flipping its direction.
Practice
Construct the centroid of a triangle and draw a circle from the centroid to any of the triangle’s points.
Show constructively, in the Euclidean sense, how averaging points produces the centroid. Hint: consider the points as vectors from the origin.
Given “P” and “u”, the points created by varying the value of “t” define a line in space. We construct those points by first scaling the directional vector and then translating the line’s start point.
As it is easier to work with points on screen instead of vectors, we can rearrange the above expression to define a line using two points “P” and “Q”.
This form is know also as linear interpolation. When the value of “t” is kept within the [0, 1] range, i.e. it behaves like a percentage, we achieve a sense of “mixture” between the positions “P” and “Q”. We mix ( 1 – t )% of the start point and t% of the end point. We thus often call this “t” values as a “mixture ratio”, “blending factor” or “parameter along the line”.
Practice
What is the “t” value of the mid-point between points “p” and “q”?
Construct a point “d” which represents the reflection of point “q” about the point “p”. What is its “t” value?
What are the values for “t” that split the line segment in four equal parts?
Generally, we prefer to work with planes where the “basis” vectors are orthogonal to one another. This is because motions in one direction, say varying “s” or “t” one at a time does not interfere with motion in the other direction i.e. “u” expresses motions exclusively in an left/right sense, while “v” an up/down sense. We call such pairs of vector linearly independent.
Practice
Construct a plane with non-orthogonal basis vectors and observe how varying the “s, t” parameters affect the “u * s + v * t” vector in a sense of skewing.
As we performed a few simple substitutions to transform the equation of the line into the linear interpolation form, we can perform exactly the same twice to transform the plane equation into a bi-linear interpolation scheme.
A vector represents a displacement or translation having a particular direction and a magnitude. It tells us how to go from to i.e. or equivalently we use .
If and then
Therefore, subtraction between two points is the way to “construct” vectors. Note that the point order is reversed i.e. the vector from to is we write first the target location followed by subtracting the source location.
Multiplication and division of vectors by single numbers represent geometric scaling. Scaling vectors retains their direction but adjusts their magnitude. If then , where is a real number.
To flip, reverse or invert the direction of a vector we multiply it with “-1”. For a vector we have
The average between points “p” and “q” represents the middle-point between them; we can express this as . You may verify this, in a Euclidean sense, by observing the diagonals of a parallelogram bisect one another.
With three points “a”, “b” and “c”, the average represents the geometric centre of the triangle. For any number of points the expression represents the geometric centre or centroid; in the same sense of the “mean” value among numbers.
With addition and multiplication we can create linear spaces. The simplest example of this capability is to consider the expression , where “P” is a point in space, “u” is a spatial vector and “t” is a real number.
Therefore if we write
then the expression
substitutes to
which expands to
and with factoring we obtain
Suppose we have one point in space “O” and two non-parallel vectors “u” and “v”. The expression , where “s” and “t” are real numbers, captures every possible point in the plane spanned by “[o, u, v]”. In other words, all points in the plane are linear combinations of those vectors.
We can express points in the “[o, u, v]” plane using their “local” coordinates as “[s, t]”. Consider for a moment the case of point and vectors and . Using the above equation we can express every point in the XY-plane as the linear combination:
.
We write such point coordinates as but this is just a shorthand notation.