- #1
sijad
- 7
- 0
Please bear with my ignorance. I will try to explain the complete scenario . I have a 3D cuboid (with planes as front, back, left, right, top and bottom) and three spheres called s1, s2 and s3. s1's center is at (2,4,5) and radius is 2. s2's center is at (-2,3,2) and radius is 1. s3's center is at (2,4,-2) and radius is 3.
Now I want to find where these spheres will intersect the planes and also find the center and radii of circles they will make on the planes. The coordinates of the cuboid walls are (bottom left, bottom right, top right, top left) as follows:
//Back
(-2, 0, -4),(2, 0, -4),(2, 3, -4),(-2, 3, -4)
//Left
(-2, 0, 4),(-2, 0, -4),(-2, 3, -4),(-2, 3, 4)
//Right
(2, 0, -4),(2, 0, 4),(2, 3, 4),(2, 3, -4)
//Front
(2, 0, 4),(-2, 0, 4),(-2, 3, 4),(2, 3, 4)
//Top
(-2, 3, -4),(2, 3, -4),(2, 3, 4),(-2, 3, 4)
//Floor
(-2, 0, 4),(2, 0, 4),(2, 0, -4),(-2, 0, -4)
I hope the question is clear enough to understand. Thank you.
Now I want to find where these spheres will intersect the planes and also find the center and radii of circles they will make on the planes. The coordinates of the cuboid walls are (bottom left, bottom right, top right, top left) as follows:
//Back
(-2, 0, -4),(2, 0, -4),(2, 3, -4),(-2, 3, -4)
//Left
(-2, 0, 4),(-2, 0, -4),(-2, 3, -4),(-2, 3, 4)
//Right
(2, 0, -4),(2, 0, 4),(2, 3, 4),(2, 3, -4)
//Front
(2, 0, 4),(-2, 0, 4),(-2, 3, 4),(2, 3, 4)
//Top
(-2, 3, -4),(2, 3, -4),(2, 3, 4),(-2, 3, 4)
//Floor
(-2, 0, 4),(2, 0, 4),(2, 0, -4),(-2, 0, -4)
I hope the question is clear enough to understand. Thank you.