POV-Ray : Newsgroups : povray.binaries.images : Math Help Request : Math Help Request Server Time
8 Aug 2024 01:19:49 EDT (-0400)
  Math Help Request  
From: Tim McMurdo
Date: 28 Oct 2005 10:30:01
Message: <web.4362358e2d40991cacb32c570@news.povray.org>
I have a gun port cut into the hull of the ship. The port was created by
differencing a box from the hull. The box was created along the z axis and
is 900mm wide (+450 and -450 on the x axis). The box was then rotated 15
degrees on the y axis and translated to <12350,0,0>.

I need to use the trace function to locate the points on the hull that are
451mm either side of the center of the gunport opening.

1. What is the math involved in determining the angle from the z axis to the
points on either side of the opening? Do I shoot a trace at the center
first to determine the distance from <12350,0,0,0> to the center and then
use C2 = A2 + B2 and trig to figure the angles to the points on either
side?

2. Once I have the angle, how do I convert it to a vector that I can use in
trace?

Thanks,

Tim


Post a reply to this message


Attachments:
Download 'math_help.jpg' (18 KB)

Preview of image 'math_help.jpg'
math_help.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.