Algorithm for point within Spheroid

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
I have a situation wheere there are two points in x/y/z coordinates.

Given axis with 3 different radii, I need to determine if the second point falls within the sphere of influnce of the first point.

Presently I am cheating by generating an approximate box, however, I would like to clip the corners and shave down the edges.

Key word is simple.
 

rainypickles

Senior member
Dec 7, 2001
724
0
0
maybe i dont understand, but can you just find the distance between A and B, and if d < radii, then it is in the sphere of influence?
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Originally posted by: rainypickles
maybe i dont understand, but can you just find the distance between A and B, and if d < radii, then it is in the sphere of influence?

A pure sphere has only one radius.

What I am trying to do is create a physical object similar to a squished football.

I know the center of the object in order to create the football. via the maximum length, width and hieght.

Now I have to via an algorithm find out if the target point is inside the squshed football.