Difference between revisions of "Notes:Reflection of ray given normal"

From Maths
Jump to: navigation, search
(Saving work)
 
m
 
Line 36: Line 36:
 
** {{MM|a_x:\eq \frac{c-c'+(\alpha-t)(\beta-\gamma)}{\gamma} }}, and
 
** {{MM|a_x:\eq \frac{c-c'+(\alpha-t)(\beta-\gamma)}{\gamma} }}, and
 
** {{MM|a_y:\eq \frac{c'-c+(\alpha-t)(\beta m m'-m^2m'-m)}{mm'+1} }}
 
** {{MM|a_y:\eq \frac{c'-c+(\alpha-t)(\beta m m'-m^2m'-m)}{mm'+1} }}
 +
* {{M|\Vert b\Vert\eq \vert t\vert\sqrt{1+m^2} \eq t\sqrt{1+m^2} }} as in our model {{M|t\ge 0}} by definition
 +
===={{M|\theta}} is found====
 +
So:
 +
* {{MM|\theta\eq\arctan\left(\frac{\Vert a\Vert}{\Vert b\Vert} \right)}}
 
===Work required===
 
===Work required===
{{Todo|Find either {{M|\Vert b\Vert }} or {{M|\Vert c\Vert}} - the first one is probably the easiest}}
 
 
 
Then we just find a line with angle {{M|2\theta}} from the incoming ray, or {{M|-\theta}} from the normal.
 
Then we just find a line with angle {{M|2\theta}} from the incoming ray, or {{M|-\theta}} from the normal.
 
==Attempt 2==
 
==Attempt 2==

Latest revision as of 21:02, 2 January 2018

Attempt 1

Best diagram I have to hand

We are given two lines:

  • 1 by y:=mx+c and
  • 2 by y:=mx+c

and

  • let t>0 for tR>0

We will find θ - the angle between 1 and 2

We make the following definitions:

  • I - the intersection point of the lines 1 and 2
  • p - the point which is t x-units behind I on 1
  • N - the normal line to 1 through p
  • q - the intersection of N and 2
  • b - the vector Ip
  • c - the vector Iq
  • a - the vector qp

Then we can use any one of the following (for the Euclidean norm):

  1. θ=arccos(bc)
  2. θ=arctan(ab)
  3. θ=arcsin(ac)

Solutions

To ease many expressions we make the following definitions:

  1. α:=ccmm,
  2. β:=m+1m and
  3. γ:=m+1m

To obtain:

  • I=(α,1(α))=(α,2(α))
  • p=(αt,1(αt))
  • q=(qx,2(qx))
    • For: qx:=cc+(αt)βγ
  • a=a2x+a2y, for:
    • ax:=cc+(αt)(βγ)γ, and
    • ay:=cc+(αt)(βmmm2mm)mm+1
  • b=|t|1+m2=t1+m2 as in our model t0 by definition

θ is found

So:

  • θ=arctan(ab)

Work required

Then we just find a line with angle 2θ from the incoming ray, or θ from the normal.

Attempt 2

I'm going to put 15 minutes into the form of line:

  • (xy)=(uv)t+(ab) and perhaps if we make it unit speed parametrisation (see regular curve and arc length) things might simplify a bit more. Recall
    • Dot product: AB=abcos(θ)