Published
Edited
Nov 21, 2019
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`Calculations:

${tex.block`
v_1 t \sin \theta = C_y \\
v_1 t \cos \theta = C_x \\
v_2 t = \sqrt{(C_x - B_x)^2 + (C_y - B_y)^2} \\
`}

Then we can plug in the value of B:
${tex.block`
v_2 t = \sqrt{(C_x - ${B[0]})^2 + (C_y - ${B[1]})^2}
`}
and solve for C? or are we solving for t?
`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function calculateInterception(A, B) {
// TODO: A, B are [x, y] and this function should return another [x, y]
return [0, 0];
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more