2022 Developer Survey is open! Take survey.

New answers tagged

3 votes
Accepted

X axis intersection with inverted Y axis coordinates

This is way too complicated. Let's say the screen center is at (0,0), the asteroid coords are x,...
user avatar
  • 1,875
0 votes

X axis intersection with inverted Y axis coordinates

const b2Vec2 point_b {aerolite_pos + delta_v}; ... slope = (point_b.y - aerolite_pos.y) / (point_b.x - aerolite_pos.x); This is equivalent to: ...
user avatar
  • 686
2 votes

Determine if a triangle is on the screen

There are three kinds of positional relationship between two plane figures: disjoint, one inside the other, partial intersection. You need to check for partial intersection and one inside the other. ...
user avatar
  • 686

Top 50 recent answers are included