Hi, I have a problem. It's for a program I'm writing so it's probably best to present it in a different way. Imagine I have a parking lot thats changing in size and all of the levels need to be visible to a cctv camera at a fixed position, and I would want the camera to see as much as possible so the bouncaries of the parking lot need to match the boundaries of the field of view of the camera. the parking lot can be moved backwards and up and down, and the height of the levels can be increased or decreased.
so in short.
things that are changed beyond my control: number of levels, level width,level length.
things that I can change : position of the parking lot, height of the levels.
constants : angle and position of camera
I have attached a diagram,
z = 30, w = 20
C1 and C2 are the points of the parking lot I need to align to the trangle.
the height of the triangle is known and can increase if needed
x and y are known as are rWidth and rHeight
gHeight, yTrans, and zTrans are what I need to derive.
What I'm looking for is an equation I can put in my constant values of w and z, put in my changing values of rectangle width and number of levels, and come out with values for gHeight, yTrans and zTrans so it makes everything fit and visible.
Thanks for any direction you can give me.
so in short.
things that are changed beyond my control: number of levels, level width,level length.
things that I can change : position of the parking lot, height of the levels.
constants : angle and position of camera
I have attached a diagram,
z = 30, w = 20
C1 and C2 are the points of the parking lot I need to align to the trangle.
the height of the triangle is known and can increase if needed
x and y are known as are rWidth and rHeight
gHeight, yTrans, and zTrans are what I need to derive.
What I'm looking for is an equation I can put in my constant values of w and z, put in my changing values of rectangle width and number of levels, and come out with values for gHeight, yTrans and zTrans so it makes everything fit and visible.
Thanks for any direction you can give me.
Attachments
Last edited: