Блог пользователя Vendetta.

Автор Vendetta., 8 лет назад, По-английски

Given 3 points in 3D, is there a way to calculate the area of the triangle made by them in O(1), considering the Cross Product will need to use the square root to calculate the magnitude of the vector produced by the cross product?

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
8 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

There is no difference in the formula for 3D: abs(CrossProduct(P1 — P0, P2 — P0) / 2) should work again.