Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

127
Visualizações
Rotated Ellipse Collision Detection - Konva

I am currently working on Ellipse collision detection. I found a calculation for ellipse collison but it is not working for rotated ellipse with certain angle. I have the angle of rotation and ellipse coordinates , semi-major and semi-minor axis but the could not be able to fix the issue. Is there any library available for it or can you help me with this Problem.

Here is the calculation i have,

var dx= mousepointx - x; var dy=mousepointy - y;

a- semi- major axis b - semi minor axis mousepointx, mousepointy- the point which i check for collision

((dxdx)/(aa)+(dydy)/(bb) <= 1);

and for rotated ellipse which i am currently having,

(((aa ) (Math.pow(Math.sin(angle), 2)) + bb * (Math.pow(Math.cos(angle), 2)) ) * dxdx + 2 * (bb - aa) * (Math.sin(angle)) * (Math.cos(angle)) * (dx * dy) + ((a * a) * (Math.pow(Math.cos(angle), 2)) + (bb) * (Math.pow(Math.sin(angle), 2)) ) * (dydy) <= aab*b );

which is not working. Thanks for the help.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda