Notes:Reflection of ray given normal

From Maths
Jump to: navigation, search

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(θ)