Borrar filtros
Borrar filtros

Determing if a point is inside an ellipsoid

10 visualizaciones (últimos 30 días)
Omair
Omair el 25 de Nov. de 2013
Comentada: Ilja Westra el 7 de Oct. de 2022
How can you determine if a given set of points is inside an off center rotated ellipsoid?

Respuesta aceptada

David Sanchez
David Sanchez el 25 de Nov. de 2013
the point (x,y,z) will be inside the ellipsoid when
(x-xo)^2/a + (y-yo)^2/b +(z-zo)^2/c < 1
it will be outside the ellipsoid when
(x-xo)^2/a + (y-yo)^2/b +(z-zo)^2/c > 1
  7 comentarios
Omair
Omair el 26 de Nov. de 2013
I know that my data is distributed along the x=y=z line in the [0,300] for all three variables. The rotation matrix i derived using this information.
Ilja Westra
Ilja Westra el 7 de Oct. de 2022
If anybody else stumbles upon this and has trouble with the equation not working:
((x-xo)/a)^2 + ((y-yo)/b)^2 +((z-zo)/c)^2 < 1
Taking the whole fractions squared instead of just the distance from the point to the ellipsoid center worked for me.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Point Cloud Processing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by