Game Development Reference
In-Depth Information
()
()
(
)
dicular distance from
t
to this line segment is equal to
q
t θ t
sin
1
. Using
q
similar triangles, we have the relation
()
()
(
)
at
q
t θ t
sin
θ
1
=
.
(4.64)
q
q
sin
1
1
()
Since
q
=
1
and
q
t
=
1
, we can simplify this to
1
(
)
sin
1
sin
θ t
θ
()
at
=
.
(4.65)
q
1
(a)
()
q
t
()
at
θt
(
)
sin
θt
1
(
)
θt
1
q
2
O
q
1
sin
θt
(b)
()
q
t
θt
(
)
θt
1
q
2
O
()
bt
Figure 4.9. Similar triangles can be used to determine the length of (a) the component of
()
()
t
that lies along the direction of q and (b) the component of
t
that lies along the
q
q
direction of q .
Search Nedrilad ::




Custom Search