This was a homework question from the class that I found interesting.
The method I outline here is different from what Dr. Wang outlined in class.
Question 1
Circular Arc -- Let C \mathcal{C} C be the unit circle centred at the origin and A , B ∈ C A, B \in \mathcal{C} A , B ∈ C be endpoints of an arc subtending a central angle of θ ∈ ( 0 , π ) . \theta \in (0, \pi). θ ∈ ( 0 , π ) .
Represent this circular arc as a rational quadratic Bézier curve
P ( t ) = ( 1 − t ) 2 P 0 + 2 w t ( 1 − t ) P 1 + t 2 P 2 ( 1 − t ) 2 + 2 w t ( 1 − t ) + t 2 , t ∈ [ 0 , 1 ] . P(t) = \frac{(1-t)^2 P_0 + 2 w t (1-t) P_1 + t^2 P_2}{(1-t)^2 + 2 w t (1-t) + t^2},\ t \in [0, 1].
P ( t ) = ( 1 − t ) 2 + 2 wt ( 1 − t ) + t 2 ( 1 − t ) 2 P 0 + 2 wt ( 1 − t ) P 1 + t 2 P 2 , t ∈ [ 0 , 1 ] .
Give control points P 0 , P 1 , P 2 P_0, P_1, P_2 P 0 , P 1 , P 2 and weight w w w , show that w = cos ( θ / 2 ) w = \cos(\theta / 2) w = cos ( θ /2 ) .
Solution
As the circular arc has endpoints A , B A, B A , B , we set P ( 0 ) = A , P ( 1 ) = B P(0) = A, P(1) = B P ( 0 ) = A , P ( 1 ) = B implying that P 0 = A , P 2 = B P_0 = A, P_2 = B P 0 = A , P 2 = B
As A A A and B B B are points on the circle, there must be angles α \alpha α and β \beta β , respectively, that represent the angle of the point along the unit circle, i.e. P 0 = A = ⟨ cos α , sin α ⟩ P_0 = A = \langle\cos\alpha, \sin\alpha\rangle P 0 = A = ⟨ cos α , sin α ⟩ , P 2 = B = ⟨ cos β , sin β ⟩ P_2 = B = \langle\cos\beta, \sin\beta\rangle P 2 = B = ⟨ cos β , sin β ⟩ , and the subtended angle is θ = β − α \theta = \beta - \alpha θ = β − α (assuming, wlog., β > α \beta > \alpha β > α ).
The curve at t = 0.5 t=0.5 t = 0.5 should represent the midpoint of the circular arc M M M ,
P ( 0.5 ) = M = 0.25 P 0 + 0.5 w P 1 + 0.25 P 2 0.5 + 0.5 w = 0.5 P 0 + w P 1 + 0.5 P 2 1 + w ( 1 + w ) M = 1 2 ( P 0 + P 2 ) + w P 1 ( 1 + w ) M − w P 1 = 1 2 ( P 0 + P 2 ) ⏟ X . \begin{align*}
P(0.5) = M &= \frac{0.25P_0 + 0.5wP_1 + 0.25P_2}{0.5 + 0.5w}\\
&= \frac{0.5P_0 + wP_1 + 0.5P_2}{1+w}\\
(1+w)M &= \frac{1}{2}(P_0 + P_2) + wP_1\\
(1+w)M - wP_1 &= \underbrace{\frac{1}{2}(P_0 + P_2)}_{X}.
\end{align*}
P ( 0.5 ) = M ( 1 + w ) M ( 1 + w ) M − w P 1 = 0.5 + 0.5 w 0.25 P 0 + 0.5 w P 1 + 0.25 P 2 = 1 + w 0.5 P 0 + w P 1 + 0.5 P 2 = 2 1 ( P 0 + P 2 ) + w P 1 = X 2 1 ( P 0 + P 2 ) .
The above implies that X X X , M M M , and P 1 P_1 P 1 are colinear which allows them to be expressed as scalar multiples of one another, i.e. P 1 = z M = z k X P_1 = zM = zkX P 1 = z M = z k X , yielding the constraint
∥ X ( 1 − w k − w z k ) ∥ = ( 1 − w k − w z k ) ∥ X ∥ = 1. (†) \|X(1 - wk - wzk)\| = (1 - wk - wzk)\|X\| = 1. \tag{\dag}
∥ X ( 1 − w k − w z k ) ∥ = ( 1 − w k − w z k ) ∥ X ∥ = 1. ( † )
We have that M M M is a scalar multiple of X X X suggesting that there exists a k k k such that M = k X M = kX M = k X and that ∥ M ∥ = 1 \|M\| = 1 ∥ M ∥ = 1 , therefore k = ∥ X ∥ − 1 . k = \|X\|^{-1}. k = ∥ X ∥ − 1 . From the illustration, we have that ∠ X O P 0 = θ / 2 \angle{XOP_0} = \theta / 2 ∠ XO P 0 = θ /2 thus cos ( θ / 2 ) = ∥ X ∥ \cos(\theta / 2) = \|X\| cos ( θ /2 ) = ∥ X ∥ and k = sec ( θ / 2 ) k = \sec(\theta / 2) k = sec ( θ /2 ) .
Next, notice that ∥ P 1 ∥ = ∥ z M ∥ = z ∥ M ∥ = z \|P_1\| = \|zM\| = z\|M\| = z ∥ P 1 ∥ = ∥ z M ∥ = z ∥ M ∥ = z is equivalent to finding ∥ X ∥ + ∥ X P 1 ‾ ∥ \|X\| + \|\overline{XP_1}\| ∥ X ∥ + ∥ X P 1 ∥ .
∥ X ∥ \|X\| ∥ X ∥ was found previously, and ∥ X P 1 ‾ ∥ \|\overline{XP_1}\| ∥ X P 1 ∥ can be found using trigonometry --- it is the length X P 0 ‾ \overline{XP_0} X P 0 times the tangent of the angle ∠ P 1 P 0 X = γ \angle P_1P_0X = \gamma ∠ P 1 P 0 X = γ .
To find γ \gamma γ , we can use the fact the inner product of two direction vectors is proportional to the cosine of the angle, or cos θ = ( A ⋅ B ) / ( ∥ A ∥ ∥ B ∥ ) \cos\theta = (A \cdot B) / (\|A\|\|B\|) cos θ = ( A ⋅ B ) / ( ∥ A ∥∥ B ∥ ) .
The direction of P 1 P 0 ‾ \overline{P_1P_0} P 1 P 0 is given by the tangent of the circle at P ( 0 ) P(0) P ( 0 ) by definition of the Bézier curve, and the direction of P 0 P 2 ‾ \overline{P_0P_2} P 0 P 2 is the difference between points.
γ = arccos ( P ′ ( 0 ) ⋅ P 0 P 1 ‾ ∥ P ′ ( 0 ) ∥ ∥ P 0 P 1 ‾ ∥ ) = arccos ( ⟨ − sin α , cos α ⟩ ⋅ ⟨ cos β − cos α , sin β − sin α ⟩ ∥ ⟨ cos β − cos α , sin β − sin α ⟩ ∥ ) = arccos ( − sin ( α ) ( cos β − cos α ) + cos ( α ) ( sin β − sin α ) ( cos β − cos α ) 2 + ( sin β − sin α ) 2 ) = arccos ( cos α sin β − sin α cos β 2 − 2 cos ( β − α ) ) = arccos ( sin ( β − α ) 2 − 2 cos ( β − α ) ) = arccos ( ∥ sin ( β − α ) 2 − 2 cos ( β − α ) ∥ ) = arccos [ ( 1 2 ⋅ sin ( β − α ) 1 − cos ( β − α ) ) 2 ] = arccos [ 1 2 ⋅ sin 2 ( β − α ) 1 − cos ( β − α ) ] = arccos [ 1 2 ⋅ 1 − cos 2 ( β − α ) 1 − cos ( β − α ) ] = arccos [ 1 2 ⋅ ( 1 − cos ( β − α ) ) ( 1 + cos ( β − α ) ) 1 − cos ( β − α ) ] = arccos [ 1 + cos ( β − α ) 2 ] = arccos [ cos ( β − α 2 ) ] = β − α 2 = θ / 2 \begin{align*}
\gamma &= \arccos\left(\frac{P'(0) \cdot \overline{P_0P_1}}{\|P'(0)\|\|\overline{P_0P_1}\|}\right)\\
&= \arccos\left(\frac{\langle -\sin\alpha, \cos\alpha\rangle \cdot \langle \cos\beta - \cos\alpha, \sin\beta - \sin\alpha \rangle}{\|\langle \cos\beta - \cos\alpha, \sin\beta - \sin\alpha \rangle\|}\right)\\
&= \arccos\left(\frac{-\sin(\alpha)(\cos\beta - \cos\alpha) + \cos(\alpha)(\sin\beta - \sin\alpha)}{\sqrt{(\cos\beta - \cos\alpha)^2 + (\sin\beta - \sin\alpha)^2}}\right)\\
&= \arccos\left(\frac{\cos\alpha\sin\beta - \sin\alpha\cos\beta}{\sqrt{2 - 2\cos(\beta - \alpha)}}\right)\\
&= \arccos\left(\frac{\sin(\beta - \alpha)}{\sqrt{2 - 2\cos(\beta - \alpha)}}\right)\\
&= \arccos\left(\left\|\frac{\sin(\beta - \alpha)}{\sqrt{2 - 2\cos(\beta - \alpha)}}\right\|\right)\tag{$\gamma \in \mathbb{R}^{+}$ by construction}\\
&= \arccos\left[\sqrt{\left(\frac{1}{\sqrt{2}}\cdot\frac{\sin(\beta - \alpha)}{\sqrt{1 - \cos(\beta - \alpha)}}\right)^2}\right]\tag{definition of abs. value}\\
&= \arccos\left[\sqrt{\frac{1}{2}\cdot\frac{\sin^2(\beta - \alpha)}{1 - \cos(\beta - \alpha)}}\right]\\
&= \arccos\left[\sqrt{\frac{1}{2}\cdot\frac{1 - \cos^2(\beta - \alpha)}{1 - \cos(\beta - \alpha)}}\right]\tag{using $\cos^2\theta + \sin^2\theta = 1$}\\
&= \arccos\left[\sqrt{\frac{1}{2}\cdot\frac{(1 - \cos(\beta - \alpha)) (1 + \cos(\beta - \alpha))}{1 - \cos(\beta - \alpha)}}\right]\tag{difference of squares}\\
&= \arccos\left[\sqrt{\frac{1 + \cos(\beta - \alpha)}{2}}\right]\tag{half angle identity}\\
&= \arccos\left[\cos\left(\frac{\beta - \alpha}{2}\right)\right]\\
&= \frac{\beta - \alpha}{2}\\
&= \theta / 2
\end{align*}
γ = arccos ( ∥ P ′ ( 0 ) ∥∥ P 0 P 1 ∥ P ′ ( 0 ) ⋅ P 0 P 1 ) = arccos ( ∥ ⟨ cos β − cos α , sin β − sin α ⟩ ∥ ⟨ − sin α , cos α ⟩ ⋅ ⟨ cos β − cos α , sin β − sin α ⟩ ) = arccos ( ( cos β − cos α ) 2 + ( sin β − sin α ) 2 − sin ( α ) ( cos β − cos α ) + cos ( α ) ( sin β − sin α ) ) = arccos ( 2 − 2 cos ( β − α ) cos α sin β − sin α cos β ) = arccos ( 2 − 2 cos ( β − α ) sin ( β − α ) ) = arccos ( 2 − 2 cos ( β − α ) sin ( β − α ) ) = arccos ( 2 1 ⋅ 1 − cos ( β − α ) sin ( β − α ) ) 2 = arccos 2 1 ⋅ 1 − cos ( β − α ) sin 2 ( β − α ) = arccos [ 2 1 ⋅ 1 − cos ( β − α ) 1 − cos 2 ( β − α ) ] = arccos [ 2 1 ⋅ 1 − cos ( β − α ) ( 1 − cos ( β − α )) ( 1 + cos ( β − α )) ] = arccos [ 2 1 + cos ( β − α ) ] = arccos [ cos ( 2 β − α ) ] = 2 β − α = θ /2 ( γ ∈ R + by construction ) ( definition of abs. value ) ( using cos 2 θ + sin 2 θ = 1 ) ( difference of squares ) ( half angle identity )
Solving for z z z ,
∥ P 1 ∥ = z = ∥ X ∥ + ∥ X P 0 ‾ ∥ tan γ = cos ( θ / 2 ) + sin ( θ / 2 ) tan ( θ / 2 ) = sec ( θ / 2 ) . \begin{align*}
\|P_1\| = z &= \|X\| + \|\overline{XP_0}\|\tan\gamma\\
&= \cos(\theta / 2) + \sin(\theta / 2)\tan(\theta / 2)\\
&= \sec(\theta / 2).
\end{align*}
∥ P 1 ∥ = z = ∥ X ∥ + ∥ X P 0 ∥ tan γ = cos ( θ /2 ) + sin ( θ /2 ) tan ( θ /2 ) = sec ( θ /2 ) .
Plugging z = k = sec ( θ / 2 ) z = k = \sec(\theta / 2) z = k = sec ( θ /2 ) into († \dag † ) gives
1 = ( 1 − w k − w z k ) ∥ X ∥ = [ 1 − w sec ( θ / 2 ) − w sec 2 ( θ / 2 ) ] cos ( θ / 2 ) sec ( θ / 2 ) = 1 − w sec ( θ / 2 ) − w sec 2 ( θ / 2 ) 1 = cos ( θ / 2 ) − w − w sec ( θ / 2 ) cos ( θ / 2 ) + 1 = w + w sec ( θ / 2 ) cos ( θ / 2 ) + 1 = w ( 1 + sec ( θ / 2 ) ) w = cos ( θ / 2 ) + 1 sec ( θ / 2 ) + 1 w = cos ( θ / 2 ) \begin{align*}
1 &= (1 - wk - wzk)\|X\|\\
&= \left[1 - w\sec(\theta / 2) - w\sec^2(\theta / 2)\right]\cos(\theta/2)\\
\sec(\theta/2) &= 1 - w\sec(\theta / 2) - w\sec^2(\theta / 2)\\
1 &= \cos(\theta / 2) - w - w\sec(\theta / 2)\\
\cos(\theta / 2) + 1 &= w + w\sec(\theta / 2)\\
\cos(\theta / 2) + 1 &= w(1 + \sec(\theta / 2))\\
w &= \frac{\cos(\theta / 2) + 1}{\sec(\theta / 2) + 1}\\
w &= \cos(\theta / 2)
\end{align*}
1 sec ( θ /2 ) 1 cos ( θ /2 ) + 1 cos ( θ /2 ) + 1 w w = ( 1 − w k − w z k ) ∥ X ∥ = [ 1 − w sec ( θ /2 ) − w sec 2 ( θ /2 ) ] cos ( θ /2 ) = 1 − w sec ( θ /2 ) − w sec 2 ( θ /2 ) = cos ( θ /2 ) − w − w sec ( θ /2 ) = w + w sec ( θ /2 ) = w ( 1 + sec ( θ /2 )) = sec ( θ /2 ) + 1 cos ( θ /2 ) + 1 = cos ( θ /2 )
Therefore, P 0 = A , P 1 = 1 2 sec 2 ( θ / 2 ) ( A + B ) , P 2 = B , w = cos ( θ / 2 ) P_0 = A, P_1 = \frac{1}{2}\sec^2(\theta / 2) (A + B), P_2 = B, w = \cos(\theta / 2) P 0 = A , P 1 = 2 1 sec 2 ( θ /2 ) ( A + B ) , P 2 = B , w = cos ( θ /2 ) .
Question 2
Semi-circle -- Represent the semi-circle x 2 + y 2 − 1 = 0 , y ≥ 0 x^2 + y^2 - 1 = 0, y \geq 0 x 2 + y 2 − 1 = 0 , y ≥ 0 as a rational quadratic Bézier curve.
Solution
Plugging in the results from part A, we get the following expression
P ( t ) = ( 1 − t ) 2 P 0 + sec ( θ / 2 ) t ( 1 − t ) ( P 0 + P 2 ) + t 2 P 2 ( 1 − t ) 2 + 2 cos ( θ / 2 ) t ( 1 − t ) + t 2 , t ∈ [ 0 , 1 ] . P(t) = \frac{(1-t)^2 P_0 + \sec(\theta / 2) t (1-t) (P_0 + P_2) + t^2 P_2}{(1-t)^2 + 2 \cos(\theta / 2) t (1-t) + t^2},\ t \in [0, 1].
P ( t ) = ( 1 − t ) 2 + 2 cos ( θ /2 ) t ( 1 − t ) + t 2 ( 1 − t ) 2 P 0 + sec ( θ /2 ) t ( 1 − t ) ( P 0 + P 2 ) + t 2 P 2 , t ∈ [ 0 , 1 ] .
Taking the limit as θ → π \theta \to \pi θ → π yields an expression for representing the semi-circle with the rational Bézier,
lim θ → π P ( t ) = lim θ → π ( 1 − t ) 2 P 0 + sec ( θ / 2 ) t ( 1 − t ) ( P 0 + P 2 ) + t 2 P 2 ( 1 − t ) 2 + 2 cos ( θ / 2 ) t ( 1 − t ) + t 2 = lim θ → π ( 1 − t ) 2 P 0 + sec ( θ / 2 ) t ( 1 − t ) ( P 0 + P 2 ) + t 2 P 2 lim θ → π ( 1 − t ) 2 + 2 cos ( θ / 2 ) t ( 1 − t ) + t 2 \begin{align*}
\lim_{\theta \to \pi} P(t) &= \lim_{\theta \to \pi}\frac{(1-t)^2 P_0 + \sec(\theta / 2) t (1-t) (P_0 + P_2) + t^2 P_2}{(1-t)^2 + 2 \cos(\theta / 2) t (1-t) + t^2}\\
&= \frac{\lim_{\theta \to \pi} (1-t)^2 P_0 + \sec(\theta / 2) t (1-t) (P_0 + P_2) + t^2 P_2}{\lim_{\theta \to \pi} (1-t)^2 + 2 \cos(\theta / 2) t (1-t) + t^2}
\end{align*}
θ → π lim P ( t ) = θ → π lim ( 1 − t ) 2 + 2 cos ( θ /2 ) t ( 1 − t ) + t 2 ( 1 − t ) 2 P 0 + sec ( θ /2 ) t ( 1 − t ) ( P 0 + P 2 ) + t 2 P 2 = lim θ → π ( 1 − t ) 2 + 2 cos ( θ /2 ) t ( 1 − t ) + t 2 lim θ → π ( 1 − t ) 2 P 0 + sec ( θ /2 ) t ( 1 − t ) ( P 0 + P 2 ) + t 2 P 2
The denominator lim θ → π ( 1 − t ) 2 + 2 cos ( θ / 2 ) t ( 1 − t ) + t 2 \lim_{\theta \to \pi} (1-t)^2 + 2 \cos(\theta / 2) t (1-t) + t^2 lim θ → π ( 1 − t ) 2 + 2 cos ( θ /2 ) t ( 1 − t ) + t 2 can be solved directly and equals ( 1 − t ) 2 + t 2 (1-t)^2 + t^2 ( 1 − t ) 2 + t 2 .
Next, we focus on solving the numerator by making the assumptions P 0 = ⟨ cos α , sin α ⟩ P_0 = \langle \cos\alpha, \sin\alpha \rangle P 0 = ⟨ cos α , sin α ⟩ and P 2 = ⟨ cos β , sin β ⟩ P_2 = \langle \cos\beta, \sin\beta \rangle P 2 = ⟨ cos β , sin β ⟩ with the subtended angle θ = β − α \theta = \beta - \alpha θ = β − α and β > α \beta > \alpha β > α . With these assumptions, the limit as θ → π \theta \to \pi θ → π is the same as the limit as both α → 0 \alpha \to 0 α → 0 and β → π \beta \to \pi β → π .
With these assumptions, the numerator is rewritten as
( 1 − t ) 2 lim α → 0 ⟨ cos α , sin α ⟩ + t ( 1 − t ) lim ( α , β ) → ( 0 , π ) sec ( β − α 2 ) ⟨ cos α + cos β , sin α + sin β ⟩ + t 2 lim β → π ⟨ cos β , sin β ⟩ . \begin{align*}
&(1-t)^2\lim_{\alpha \to 0} \langle \cos\alpha, \sin\alpha\rangle\\
&\quad+ t (1-t) \lim_{(\alpha, \beta) \to (0, \pi)} \sec\left(\frac{\beta - \alpha}{2}\right) \left\langle \cos\alpha + \cos\beta, \sin\alpha + \sin\beta\right\rangle\\
&\quad+ t^2 \lim_{\beta \to \pi} \langle\cos\beta, \sin\beta\rangle.
\end{align*}
( 1 − t ) 2 α → 0 lim ⟨ cos α , sin α ⟩ + t ( 1 − t ) ( α , β ) → ( 0 , π ) lim sec ( 2 β − α ) ⟨ cos α + cos β , sin α + sin β ⟩ + t 2 β → π lim ⟨ cos β , sin β ⟩ .
Now we focus on the second limit as it is problematic due to lim θ → π / 2 sec θ \lim_{\theta \to \pi / 2} \sec\theta lim θ → π /2 sec θ being indeterminant.
lim ( α , β ) → ( 0 , π ) sec ( β − α 2 ) ⟨ cos α + cos β , sin α + sin β ⟩ = 2 lim ( α , β ) → ( 0 , π ) sec ( β − α 2 ) ⟨ cos ( α + β 2 ) cos ( α − β 2 ) , sin ( α + β 2 ) cos ( α − β 2 ) ⟩ = 2 lim ( α , β ) → ( 0 , π ) sec ( β − α 2 ) ⟨ cos ( α + β 2 ) cos ( β − α 2 ) , sin ( α + β 2 ) cos ( β − α 2 ) ⟩ = 2 lim ( α , β ) → ( 0 , π ) ⟨ cos ( α + β 2 ) , sin ( α + β 2 ) ⟩ = 2 ⟨ cos ( π 2 ) , sin ( π 2 ) ⟩ = 2 ⟨ 0 , 1 ⟩ \begin{align*}
&\lim_{(\alpha, \beta) \to (0, \pi)}\sec\left(\frac{\beta - \alpha}{2}\right) \left\langle \cos\alpha + \cos\beta, \sin\alpha + \sin\beta\right\rangle\\
=&2\lim_{(\alpha, \beta) \to (0, \pi)}\sec\left(\frac{\beta - \alpha}{2}\right) \left\langle \cos\left(\frac{\alpha + \beta}{2}\right)\cos\left(\frac{\alpha - \beta}{2}\right), \sin\left(\frac{\alpha + \beta}{2}\right)\cos\left(\frac{\alpha - \beta}{2}\right)\right\rangle\\
=&2\lim_{(\alpha, \beta) \to (0, \pi)}\sec\left(\frac{\beta - \alpha}{2}\right) \left\langle \cos\left(\frac{\alpha + \beta}{2}\right)\cos\left(\frac{\beta - \alpha}{2}\right), \sin\left(\frac{\alpha + \beta}{2}\right)\cos\left(\frac{\beta - \alpha}{2}\right)\right\rangle\\
=&2\lim_{(\alpha, \beta) \to (0, \pi)}\left\langle \cos\left(\frac{\alpha + \beta}{2}\right), \sin\left(\frac{\alpha + \beta}{2}\right)\right\rangle\\
=&\ 2\Big\langle\cos\left(\frac{\pi}{2}\right), \sin\left(\frac{\pi}{2}\right)\Big\rangle\\
=&\ 2\langle 0, 1\rangle
\end{align*}
= = = = = ( α , β ) → ( 0 , π ) lim sec ( 2 β − α ) ⟨ cos α + cos β , sin α + sin β ⟩ 2 ( α , β ) → ( 0 , π ) lim sec ( 2 β − α ) ⟨ cos ( 2 α + β ) cos ( 2 α − β ) , sin ( 2 α + β ) cos ( 2 α − β ) ⟩ 2 ( α , β ) → ( 0 , π ) lim sec ( 2 β − α ) ⟨ cos ( 2 α + β ) cos ( 2 β − α ) , sin ( 2 α + β ) cos ( 2 β − α ) ⟩ 2 ( α , β ) → ( 0 , π ) lim ⟨ cos ( 2 α + β ) , sin ( 2 α + β ) ⟩ 2 ⟨ cos ( 2 π ) , sin ( 2 π ) ⟩ 2 ⟨ 0 , 1 ⟩
Finally, the semi-circle is represented by the following rational quadratic Bézier curve
P ( t ) = ( 1 − t ) 2 ⟨ 1 , 0 ⟩ + 2 t ( 1 − t ) ⟨ 0 , 1 ⟩ + t 2 ⟨ − 1 , 0 ⟩ ( 1 − t ) 2 + t 2 . P(t) = \frac{(1-t)^2\langle 1, 0\rangle + 2t(1-t) \langle 0, 1\rangle + t^2 \langle -1, 0\rangle}{(1-t)^2 + t^2}.
P ( t ) = ( 1 − t ) 2 + t 2 ( 1 − t ) 2 ⟨ 1 , 0 ⟩ + 2 t ( 1 − t ) ⟨ 0 , 1 ⟩ + t 2 ⟨ − 1 , 0 ⟩ .